diff options
author | ryuslash | 2010-10-04 12:51:26 +0200 |
---|---|---|
committer | ryuslash | 2010-10-04 12:51:26 +0200 |
commit | e7c78a78d9b8bdc9f918af8862c53a9a08a2c007 (patch) | |
tree | 18ea2593553b02c8627a80010f219fa9b0c90a51 | |
parent | 56230cd5340b9da6e4ae0c3d4e48d6ffed83275b (diff) | |
download | dotfiles-e7c78a78d9b8bdc9f918af8862c53a9a08a2c007.tar.gz dotfiles-e7c78a78d9b8bdc9f918af8862c53a9a08a2c007.zip |
install script
-rw-r--r-- | dotemacs/install.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dotemacs/install.sh b/dotemacs/install.sh new file mode 100644 index 0000000..18900b1 --- /dev/null +++ b/dotemacs/install.sh @@ -0,0 +1,14 @@ +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" +ln -sf $INSTALL_BASEDIR/.emacs.d $HOME/.emacs.d |