about summary refs log tree commit diff
path: root/configs/setup_configs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/setup_configs.sh')
-rwxr-xr-xconfigs/setup_configs.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/configs/setup_configs.sh b/configs/setup_configs.sh
index 7176259347b8..c0673c0a055d 100755
--- a/configs/setup_configs.sh
+++ b/configs/setup_configs.sh
@@ -4,11 +4,17 @@
 pc_settings_path="$HOME/pc_settings"
 
 
-config_files=( ".zsh_profile" ".tmux.conf" ".ctags" )
+config_files=( \
+  ".zsh_profile" \
+  ".tmux.conf" \
+  ".ctags" \
+  ".vimrc" \
+)
 
 
-for i in {1..3}; do
+for i in {0..3}; do
     cf="${config_files[i]}"
+    echo "\"$cf\": "
     if [ -f "$HOME/$cf" ] && [ ! -L "$HOME/$cf" ]; then
         echo -n "Backing up $cf ... " && \
         mv "$HOME/$cf" "$HOME/$cf.bak" && \
@@ -17,14 +23,15 @@ for i in {1..3}; do
 
     if [ -L "$HOME/$cf" ]; then
         if [ $(readlink "$HOME/$cf") = "$pc_settings_path/configs/$cf" ]; then
-            echo "\"$cf\" is already properly symlinked to \"$pc_settings_path/configs\"."
+            echo "Already properly symlinked to \"$pc_settings_path/configs\"."
         else
-            echo "\"$cf\" is symlinked but not to the proper location."
+            echo "Already symlinked but NOT to the proper location. Aborting..."
         fi
     else
         echo -n "Symlinking to $pc_settings_path/configs/$cf ... " && \
         ln -s "$pc_settings_path/configs/$cf" "$HOME/$cf" && \
         echo "Done."
     fi
+    echo ""
 done