legacy-dotfiles/install.sh
ryuslash c38f147ead Added xmodmap
Added rainbow.el to emacs
Showing some extra messages with install.bat and install.sh
Added some elisp to check which distro I'm on at that moment, though I don't yet use it
2010-07-01 22:28:59 +02:00

24 lines
No EOL
777 B
Bash
Executable file

INSTALL_BASEFILE=`readlink -f $0`
INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE`
# EMACS
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/
# XDEFAULTS
echo "Linking $INSTALL_BASEDIR/.Xdefaults to $HOME/.Xdefaults"
ln -sf $INSTALL_BASEDIR/.Xdefaults $HOME/.Xdefaults
# XMODMAP
echo "Linking $INSTALL_BASEDIR/.Xmodmap to $HOME/.Xmodmap"
ln -sf $INSTALL_BASEDIR/.Xmodmap $HOME/.Xmodmap