summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorGravatar ryuslash2010-07-01 22:28:59 +0200
committerGravatar ryuslash2010-07-01 22:28:59 +0200
commitc38f147ead1d57f48a75df8653ed3ed1c12eebd3 (patch)
treee6585a87f98c5430d2443ebc3ee3a4b5decc8eec /install.sh
parent104692129fd34a52dd967095f57371d1781c9172 (diff)
downloaddotfiles-c38f147ead1d57f48a75df8653ed3ed1c12eebd3.tar.gz
dotfiles-c38f147ead1d57f48a75df8653ed3ed1c12eebd3.zip
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
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index bcbbf7b..3e1a96a 100755
--- a/install.sh
+++ b/install.sh
@@ -2,11 +2,23 @@ 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
- rm -rf $HOME/.emacs.d
+ 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
-ln -sf $INSTALL_BASEDIR/.Xdefaults $HOME/.Xdefaults \ No newline at end of file
+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 \ No newline at end of file