diff options
Diffstat (limited to 'launchd_scripts/attempt_vim_switch.sh')
-rwxr-xr-x | launchd_scripts/attempt_vim_switch.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/launchd_scripts/attempt_vim_switch.sh b/launchd_scripts/attempt_vim_switch.sh new file mode 100755 index 000000000000..65f77c342671 --- /dev/null +++ b/launchd_scripts/attempt_vim_switch.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + + +if [ -d /Volumes/usb_vim ] && \ # usb has mounted + [ ! -L "$HOME/.vimrc" ] && \ # .vimrc is a symlink + [ ! -L "$HOME/.vim" ]; then # .vim dir is a symlink + . "/Volumes/usb_vim/vim/vim_point_to_usb.sh" + . "$HOME/pc_settings/launchd_scripts/notice.sh" +else + . "$HOME/pc_settings/launchd_scripts/notice_2.sh" +fi + + |