2019-04-16 16:33:57 +00:00
|
|
|
#!/bin/bash
|
2019-04-17 02:24:37 +00:00
|
|
|
RC_DIR='$HOME/.wryn'
|
2019-09-17 01:42:08 +00:00
|
|
|
|
|
|
|
[ ! -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;
|
|
|
|
|
2019-12-02 17:16:05 +00:00
|
|
|
grep '.wryn' $HOME/.zshrc >/dev/null 2>/dev/null \
|
|
|
|
&& echo already set up zsh rc \
|
|
|
|
|| echo source $RC_DIR/zsh/rc >> $HOME/.zshrc;
|
|
|
|
|
2019-09-17 16:41:04 +00:00
|
|
|
LOCAL_DIR_SETUP="$HOME/.my_bash_env"
|
2019-09-17 01:42:08 +00:00
|
|
|
if [ ! -f "$LOCAL_DIR_SETUP" ]; then
|
|
|
|
touch "$LOCAL_DIR_SETUP";
|
|
|
|
echo '#!/bin/bash' >> $LOCAL_DIR_SETUP
|
2019-09-17 16:41:04 +00:00
|
|
|
echo 'RD_PATH="$HOME/RentDynamics";' >> $LOCAL_DIR_SETUP
|
|
|
|
echo 'SCHOOL_DIR="$HOME/School";' >> $LOCAL_DIR_SETUP
|
2019-09-26 16:14:06 +00:00
|
|
|
echo 'DOTWRYN="$HOME/.wryn";' >> $LOCAL_DIR_SETUP
|
2019-09-17 16:41:04 +00:00
|
|
|
else
|
|
|
|
echo 'bash environment variables already set up'
|
|
|
|
fi
|
|
|
|
|
2019-12-02 17:16:05 +00:00
|
|
|
LOCAL_ZSH_SETUP="$HOME/.my_zsh_env"
|
|
|
|
if [ ! -f "$LOCAL_ZSH_SETUP" ]; then
|
|
|
|
touch "$LOCAL_ZSH_SETUP";
|
|
|
|
echo '#!/bin/zsh' >> $LOCAL_ZSH_SETUP
|
|
|
|
echo 'RD_PATH="$HOME/RentDynamics";' >> $LOCAL_ZSH_SETUP
|
|
|
|
echo 'SCHOOL_ZSH="$HOME/School";' >> $LOCAL_ZSH_SETUP
|
|
|
|
echo 'DOTWRYN="$HOME/.wryn";' >> $LOCAL_ZSH_SETUP
|
|
|
|
else
|
|
|
|
echo 'zsh environment already set up';
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2019-09-17 16:41:04 +00:00
|
|
|
LOCAL_VIM_SETUP="$HOME/.my_vim_env"
|
|
|
|
if [ ! -f "$LOCAL_VIM_SETUP" ]; then
|
|
|
|
touch "$LOCAL_VIM_SETUP";
|
2019-09-26 16:46:38 +00:00
|
|
|
echo 'let $RC_DIR=expand("$HOME/.wryn")' >> $LOCAL_VIM_SETUP
|
|
|
|
echo 'let $VIM_DIR=expand("$RC_DIR/vim")' >> $LOCAL_VIM_SETUP
|
|
|
|
echo 'let $WRYNVIMRC=expand("$VIM_DIR/rc.vim")' >> $LOCAL_VIM_SETUP
|
|
|
|
echo 'let $WRYNBASH=expand("$RC_DIR/bashrc")' >> $LOCAL_VIM_SETUP
|
|
|
|
echo 'let $MYBASHRC=expand("$HOME/.bashrc")' >> $LOCAL_VIM_SETUP
|
2019-09-26 22:00:03 +00:00
|
|
|
echo 'let $WEBBROWSER="' $(which google-chrome-stable) '"' >> $LOCAL_VIM_SETUP
|
2019-09-17 16:41:04 +00:00
|
|
|
else
|
|
|
|
echo 'vim environment variables already set up'
|
2019-09-17 01:42:08 +00:00
|
|
|
fi
|
2019-12-02 17:16:05 +00:00
|
|
|
|