debugging the machine-to-machine env files

This commit is contained in:
Wryn Wagner 2019-09-17 10:41:04 -06:00
parent 567268bbaa
commit c9c0909d20
3 changed files with 24 additions and 9 deletions

View File

@ -2,7 +2,7 @@
DOTWRYN="$HOME/.wryn" DOTWRYN="$HOME/.wryn"
RC_DIR="$DOTWRYN/bash" RC_DIR="$DOTWRYN/bash"
source "$HOME/.my_bash_dirs" source "$HOME/.my_bash_env"
# source .wryn/bash files # source .wryn/bash files
for file in $(find $RC_DIR -maxdepth 1 -type f ! -name 'rc'); do source $file; done; for file in $(find $RC_DIR -maxdepth 1 -type f ! -name 'rc'); do source $file; done;

View File

@ -12,10 +12,24 @@ grep '.wryn' $HOME/.vimrc >/dev/null 2>/dev/null \
&& echo already set up vim rc \ && echo already set up vim rc \
|| echo source $RC_DIR/vim/rc.vim >> $HOME/.vimrc; || echo source $RC_DIR/vim/rc.vim >> $HOME/.vimrc;
LOCAL_DIR_SETUP="$HOME/.my_bash_dirs" LOCAL_DIR_SETUP="$HOME/.my_bash_env"
if [ ! -f "$LOCAL_DIR_SETUP" ]; then if [ ! -f "$LOCAL_DIR_SETUP" ]; then
touch "$LOCAL_DIR_SETUP"; touch "$LOCAL_DIR_SETUP";
echo '#!/bin/bash' >> $LOCAL_DIR_SETUP echo '#!/bin/bash' >> $LOCAL_DIR_SETUP
echo 'RD_PATH="";' >> $LOCAL_DIR_SETUP echo 'RD_PATH="$HOME/RentDynamics";' >> $LOCAL_DIR_SETUP
echo 'SCHOOL_DIR="";' >> $LOCAL_DIR_SETUP echo 'SCHOOL_DIR="$HOME/School";' >> $LOCAL_DIR_SETUP
else
echo 'bash environment variables already set up'
fi
LOCAL_VIM_SETUP="$HOME/.my_vim_env"
if [ ! -f "$LOCAL_VIM_SETUP" ]; then
touch "$LOCAL_VIM_SETUP";
echo 'let $RC_DIR="$HOME/.wryn"' >> $LOCAL_VIM_SETUP
echo 'let $VIM_DIR="$RC_DIR/vim"' >> $LOCAL_VIM_SETUP
echo 'let $WRYNVIMRC="$VIM_DIR/rc.vim"' >> $LOCAL_VIM_SETUP
echo 'let $WRYNBASH="$RC_DIR/bashrc"' >> $LOCAL_VIM_SETUP
echo 'let $MYBASHRC="$HOME/.bashrc"' >> $LOCAL_VIM_SETUP
else
echo 'vim environment variables already set up'
fi fi

View File

@ -1,9 +1,10 @@
" -- Environment Variables --------------------------------------- {{{ " -- Environment Variables --------------------------------------- {{{
let $RC_DIR="/home/w0ryn/.wryn" source $HOME/.my_vim_env
let $VIM_DIR="/home/w0ryn/.wryn/vim" "let $RC_DIR="/home/w0ryn/.wryn"
let $WRYNVIMRC="$VIM_DIR/rc.vim" "let $VIM_DIR="/home/w0ryn/.wryn/vim"
let $WRYNBASH="$RC_DIR/bashrc" "let $WRYNVIMRC="$VIM_DIR/rc.vim"
let $MYBASHRC="/home/w0ryn/.bashrc" "let $WRYNBASH="$RC_DIR/bashrc"
"let $MYBASHRC="/home/w0ryn/.bashrc"
" }}} " }}}
" -- General Settings -------------------------------------------- {{{ " -- General Settings -------------------------------------------- {{{