dotwryn/redirect

22 lines
637 B
Plaintext
Raw Normal View History

#!/bin/bash
2019-04-17 02:24:37 +00:00
RC_DIR='$HOME/.wryn'
[ ! -f "$HOME/.bashrc" ] && touch "$HOME/.bashrc";
[ ! -f "$HOME/.vimrc" ] && touch "$HOME/.vimrc";
grep '.wryn' $HOME/.bashrc >/dev/null 2>/dev/null \
&& echo already set up bash rc \
|| echo source $RC_DIR/bash/rc >> $HOME/.bashrc;
grep '.wryn' $HOME/.vimrc >/dev/null 2>/dev/null \
&& echo already set up vim rc \
|| echo source $RC_DIR/vim/rc.vim >> $HOME/.vimrc;
LOCAL_DIR_SETUP="$HOME/.my_bash_dirs"
if [ ! -f "$LOCAL_DIR_SETUP" ]; then
touch "$LOCAL_DIR_SETUP";
echo '#!/bin/bash' >> $LOCAL_DIR_SETUP
echo 'RD_PATH="";' >> $LOCAL_DIR_SETUP
echo 'SCHOOL_DIR="";' >> $LOCAL_DIR_SETUP
fi