Updates config to support ctags

This commit is contained in:
William Carroll 2016-11-10 10:57:18 -05:00
parent 251c7d72b9
commit ccd11f7197
3 changed files with 132 additions and 1 deletions

View file

@ -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