legacy-dotfiles/install.sh

50 lines
1.5 KiB
Bash
Raw Normal View History

INSTALL_BASEFILE=`readlink -f $0`
INSTALL_BASEDIR=`dirname $INSTALL_BASEFILE`
# EMACS
2010-10-05 11:37:43 +02:00
#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
# 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"
2010-07-06 20:42:22 +02:00
ln -sf $INSTALL_BASEDIR/.Xmodmap $HOME/.Xmodmap
# conkeror
echo "Linking $INSTALL_BASEDIR/.conkerorrc to $HOME/.conkerorrc"
2010-07-15 20:49:39 +02:00
ln -sf $INSTALL_BASEDIR/.conkerorrc $HOME/.conkerorrc
2010-10-05 11:37:43 +02:00
# awesome
2010-07-15 20:49:39 +02:00
echo "Linking #INSTALL_BASEDIR/awesome to $HOME/.config/awesome"
if [ -d $HOME/.config/awesome ]; then
if [ -d $HOME/.config/awesome_backup ]; then
echo "Removing old $HOME/.config/awesome_backup"
rm -rf $HOME/.config/awesome_backup
fi
echo "Moving old $HOME/.config/awesome"
mv $HOME/.config/awesome $HOME/.config/awesome_backup
fi
echo "Linking $INSTALL_BASEDIR/awesome to $HOME/.config/awesome"
2010-10-05 11:37:43 +02:00
ln -sf $INSTALL_BASEDIR/awesome $HOME/.config/awesome
for item in `ls`; do
if [ -d $item ]; then
if [ -e $item/install.sh ]; then
. $item/install.sh $INSTALL_BASEDIR
fi
fi
done