2010-06-30 20:59:12 +02:00
|
|
|
INSTALL_BASEFILE=`readlink -f $0`
|
|
|
|
INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE`
|
|
|
|
|
2010-06-30 21:21:34 +02:00
|
|
|
# EMACS
|
2010-07-01 22:28:59 +02:00
|
|
|
echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs"
|
2010-06-30 20:59:12 +02:00
|
|
|
ln -sf $INSTALL_BASEDIR/.emacs $HOME/.emacs
|
|
|
|
if [ -d $HOME/.emacs.d ]; then
|
2010-07-01 22:28:59 +02:00
|
|
|
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
|
2010-06-30 20:59:12 +02:00
|
|
|
fi
|
2010-07-01 22:28:59 +02:00
|
|
|
echo "Linking $INSTALL_BASEDIR/.emacs to $HOME/.emacs"
|
2010-06-30 21:21:34 +02:00
|
|
|
ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/
|
|
|
|
|
|
|
|
# XDEFAULTS
|
2010-07-01 22:28:59 +02:00
|
|
|
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
|