install script
This commit is contained in:
parent
56230cd534
commit
e7c78a78d9
1 changed files with 14 additions and 0 deletions
14
dotemacs/install.sh
Normal file
14
dotemacs/install.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
INSTALL_BASEDIR=$1
|
||||
|
||||
echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs"
|
||||
ln -sf $INSTALL_BASEDIR/.emacs $HOME/.emacs
|
||||
if [ -d $HOME/.emacs.d ]; then
|
||||
if [ -d $HOME/.emacs.d_backup ]; then
|
||||
echo "Removing old $HOME/.emacs.d_backup"
|
||||
rm -rf $HOME/.emacs.d_backup
|
||||
fi
|
||||
echo "Moving old $HOME/.emacs.d"
|
||||
mv $HOME/.emacs.d $HOME/.emacs.d_backup
|
||||
fi
|
||||
echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs"
|
||||
ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/.emacs.d
|
Loading…
Reference in a new issue