debugging the machine-to-machine env files
This commit is contained in:
parent
567268bbaa
commit
c9c0909d20
2
bash/rc
2
bash/rc
@ -2,7 +2,7 @@
|
||||
DOTWRYN="$HOME/.wryn"
|
||||
RC_DIR="$DOTWRYN/bash"
|
||||
|
||||
source "$HOME/.my_bash_dirs"
|
||||
source "$HOME/.my_bash_env"
|
||||
|
||||
# source .wryn/bash files
|
||||
for file in $(find $RC_DIR -maxdepth 1 -type f ! -name 'rc'); do source $file; done;
|
||||
|
20
redirect
20
redirect
@ -12,10 +12,24 @@ 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"
|
||||
LOCAL_DIR_SETUP="$HOME/.my_bash_env"
|
||||
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
|
||||
echo 'RD_PATH="$HOME/RentDynamics";' >> $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
|
||||
|
11
vim/rc.vim
11
vim/rc.vim
@ -1,9 +1,10 @@
|
||||
" -- Environment Variables --------------------------------------- {{{
|
||||
let $RC_DIR="/home/w0ryn/.wryn"
|
||||
let $VIM_DIR="/home/w0ryn/.wryn/vim"
|
||||
let $WRYNVIMRC="$VIM_DIR/rc.vim"
|
||||
let $WRYNBASH="$RC_DIR/bashrc"
|
||||
let $MYBASHRC="/home/w0ryn/.bashrc"
|
||||
source $HOME/.my_vim_env
|
||||
"let $RC_DIR="/home/w0ryn/.wryn"
|
||||
"let $VIM_DIR="/home/w0ryn/.wryn/vim"
|
||||
"let $WRYNVIMRC="$VIM_DIR/rc.vim"
|
||||
"let $WRYNBASH="$RC_DIR/bashrc"
|
||||
"let $MYBASHRC="/home/w0ryn/.bashrc"
|
||||
" }}}
|
||||
|
||||
" -- General Settings -------------------------------------------- {{{
|
||||
|
Loading…
Reference in New Issue
Block a user