legacy-dotfiles/install.sh

15 lines
473 B
Bash
Raw Normal View History

2010-10-05 11:29:37 +02:00
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"
2010-07-15 20:49:39 +02:00
ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/.emacs.d