Only link configs if they don't already exist

This commit is contained in:
Sami Samhuri 2010-08-20 13:31:45 -07:00
parent 7e53b85f31
commit 8e4ccf49f3

10
init.sh
View file

@ -8,8 +8,8 @@ else
CONFIG_PATH="${HOME}/config" CONFIG_PATH="${HOME}/config"
fi fi
ln -s "${CONFIG_PATH}/emacs" ".emacs" [ -e ".emacs" ] || ln -s "${CONFIG_PATH}/emacs" ".emacs"
ln -s "${CONFIG_PATH}/emacs.d" ".emacs.d" [ -e ".emacs.d" ] || ln -s "${CONFIG_PATH}/emacs.d" ".emacs.d"
ln -s "${CONFIG_PATH}/screenrc" ".screenrc" [ -e ".screenrc" ] || ln -s "${CONFIG_PATH}/screenrc" ".screenrc"
ln -s "${CONFIG_PATH}/vimrc" ".vimrc" [ -e ".vimrc" ] || ln -s "${CONFIG_PATH}/vimrc" ".vimrc"
ln -s "${CONFIG_PATH}/zshenv" ".zshenv" [ -e ".zshenv" ] || ln -s "${CONFIG_PATH}/zshenv" ".zshenv"