Only link configs if they don't already exist
This commit is contained in:
parent
7e53b85f31
commit
8e4ccf49f3
1 changed files with 5 additions and 5 deletions
10
init.sh
10
init.sh
|
|
@ -8,8 +8,8 @@ else
|
|||
CONFIG_PATH="${HOME}/config"
|
||||
fi
|
||||
|
||||
ln -s "${CONFIG_PATH}/emacs" ".emacs"
|
||||
ln -s "${CONFIG_PATH}/emacs.d" ".emacs.d"
|
||||
ln -s "${CONFIG_PATH}/screenrc" ".screenrc"
|
||||
ln -s "${CONFIG_PATH}/vimrc" ".vimrc"
|
||||
ln -s "${CONFIG_PATH}/zshenv" ".zshenv"
|
||||
[ -e ".emacs" ] || ln -s "${CONFIG_PATH}/emacs" ".emacs"
|
||||
[ -e ".emacs.d" ] || ln -s "${CONFIG_PATH}/emacs.d" ".emacs.d"
|
||||
[ -e ".screenrc" ] || ln -s "${CONFIG_PATH}/screenrc" ".screenrc"
|
||||
[ -e ".vimrc" ] || ln -s "${CONFIG_PATH}/vimrc" ".vimrc"
|
||||
[ -e ".zshenv" ] || ln -s "${CONFIG_PATH}/zshenv" ".zshenv"
|
||||
|
|
|
|||
Loading…
Reference in a new issue