new emacs
This commit is contained in:
parent
2ba3cdf77e
commit
f65c4e681f
6 changed files with 1362 additions and 0 deletions
20
.emacs.d/install.sh
Executable file
20
.emacs.d/install.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ ! -e ~/.cask ]]
|
||||
then
|
||||
echo "Cloning Cask repo"
|
||||
git clone git@github.com:cask/cask.git ~/.cask
|
||||
fi
|
||||
|
||||
if [[ $(grep "cask/bin" ~/.bash_profile) == "" ]]
|
||||
then
|
||||
echo "Adding \$HOME/.cask/bin to \$PATH in ~/.bash_profile"
|
||||
echo '' >> ~/.bash_profile
|
||||
echo "# Added by ~/.emacs.d/install.sh" >> ~/.bash_profile
|
||||
echo "export PATH=\$HOME/.cask/bin:\$PATH" >> ~/.bash_profile
|
||||
fi
|
||||
|
||||
export PATH=$HOME/.cask/bin:$PATH
|
||||
|
||||
cd ~/.emacs.d
|
||||
cask install
|
||||
Loading…
Add table
Add a link
Reference in a new issue