diff options
Diffstat (limited to 'configs/setup_configs.sh')
-rwxr-xr-x | configs/setup_configs.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/configs/setup_configs.sh b/configs/setup_configs.sh index e1a742c4b199..2dbe15e118f9 100755 --- a/configs/setup_configs.sh +++ b/configs/setup_configs.sh @@ -20,7 +20,7 @@ else fi -# backup .tmux.conf +# .tmux.conf if [ -f "$HOME"/.tmux.conf ] && [ ! -L "$HOME"/.tmux.conf ]; then echo -n "Backing up .tmux.conf ... " && \ mv "$HOME"/.tmux.conf "$HOME"/.tmux.conf.bak && \ @@ -37,3 +37,22 @@ else echo "Done." fi + +# .ctags +if [ -f "$HOME"/.ctags ] && [ ! -L "$HOME"/.ctags ]; then + # backup .ctags + echo -n "Backing up .ctags ... " && \ + mv "$HOME"/.ctags "$HOME"/.ctags.bak && \ + echo "Done." +fi + +if [ -L "$HOME"/.ctags ]; then + # TODO: make sure that .ctags is symlinked to the correct location. + echo ".ctags is already symlinked." +else + # create symlink to pc_settings .ctags + echo -n "Symlinking to pc_settings/configs/.ctags ... " && \ + ln -s "$HOME"/pc_settings/configs/.ctags "$HOME"/.ctags && \ + echo "Done." +fi + |