about summary refs log blame commit diff
path: root/launchd_scripts/attempt_vim_switch.sh
blob: 65f77c3426714bee4923615caa1b3c82fbce2f17 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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