tvl-depot/launchd_scripts/attempt_vim_switch.sh

14 lines
345 B
Bash
Raw Normal View History

2016-08-15 17:14:37 +02:00
#!/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