[provisioning] install emacs via ppa in linux

This commit is contained in:
Correl Roush 2018-02-23 16:17:52 -05:00
parent a291159d11
commit 1c33b852ca
3 changed files with 19 additions and 2 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash
set +e
if [ -z "$__apt_updated" ]; then
_run "Update APT cache" sudo apt-get update
@ -13,3 +14,9 @@ function _apt {
echo "[apt] $pkg is already installed, skipping."
fi
}
_apt software-properties-common
function _ppa {
_run "[apt] Add PPA: $1" sudo add-apt-repository -u -y ppa:$1
}

View file

@ -8,7 +8,9 @@ case $_PLATFORM in
_brew emacs --with-cocoa --with-librsvg --with-imagemagick@6
;;
linux)
_brew emacs --with-librsvg --with-imagemagick@6
_recipe _apt
_ppa ubuntu-elisp/ppa
_apt emacs25
;;
esac

View file

@ -5,7 +5,15 @@ _recipe brew
_brew isync
_recipe emacs
EMACS=$(which emacs) _brew mu --with-emacs --HEAD
case $_PLATFORM in
darwin)
EMACS=$(which emacs) _brew mu --with-emacs --HEAD
;;
*)
_recipe apt
_apt maildir-utils
;;
esac
_recipe nvm
_npm imapnotify