about summary refs log tree commit diff
path: root/configs/setup_configs.sh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2016-11-10T15·57-0500
committerWilliam Carroll <wpcarro@gmail.com>2016-11-10T15·57-0500
commitccd11f71971cfabd9f61666f403161a553266693 (patch)
tree16fceab39aeee6ef9e4eadf2d8e1e88edd1ae59d /configs/setup_configs.sh
parent251c7d72b955bdcd79870fa0d7b508e8b67792a3 (diff)
Updates config to support ctags
Diffstat (limited to 'configs/setup_configs.sh')
-rwxr-xr-xconfigs/setup_configs.sh21
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
+