about summary refs log tree commit diff
path: root/usbify
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2016-08-01T19·46-0400
committerWilliam Carroll <wpcarro@gmail.com>2016-08-01T19·46-0400
commit243cb92da9e8a0f46cbe1bd36ad4ea14037ab57a (patch)
treea1292f1580f3ba08c5cab563640c6008e30ab5c2 /usbify
parent2021514c9c6a212462b9a58e3ec6cd5b1d4cff3b (diff)
Updates script to use symlink instead of file copy
Diffstat (limited to 'usbify')
-rwxr-xr-xusbify/vim/vim_point_to_usb.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/usbify/vim/vim_point_to_usb.sh b/usbify/vim/vim_point_to_usb.sh
index 00c428930a14..e2faa9d9bf6d 100755
--- a/usbify/vim/vim_point_to_usb.sh
+++ b/usbify/vim/vim_point_to_usb.sh
@@ -1,5 +1,7 @@
 #!/usr/bin/env bash
 
+path_to_ext_device="/Volumes/usb_vim"
+
 # This script toggles between local vim and a version that can be stored on an 
 # external device like a USB.
 
@@ -26,10 +28,10 @@ else
 
   # point the $HOME/.vim name to the USB for source routing
   # use the USB drive's copy of .vimrc
-  ln -s /Volumes/Untitled\ 1/.vim "$HOME/.vim"
-  cp /Volumes/Untitled\ 1/.vimrc "$HOME/"
+  ln -s "${path_to_ext_device}/.vim" "$HOME/.vim"
+  ln -s "${path_to_ext_device}/.vimrc" "$HOME/.vimrc"
 
-  echo ".vim now points to /Volumes/Untitled\ 1/.vim"
+  echo ".vim now points to ${path_to_ext_device}/.vim"
 fi
 
 echo "Done."