new environment setup

This commit is contained in:
Wryn Wagner
2020-01-08 12:40:53 -07:00
parent c81f237993
commit c4ed1fb8d8
8 changed files with 73 additions and 42 deletions

15
env/env.bash vendored Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# Default bash environment
RD_PATH="$HOME/RentDynamics"
SCHOOL_DIR="$HOME/School"
DOTWRYN="$HOME/.wryn"
LOCAL_OVERRIDES="$HOME/.config/wryn/env.bash"
[ -f "$LOCAL_OVERRIDES" ] \
&& source "$LOCAL_OVERRIDES" \
|| {
touch $LOCAL_OVERRIDES \
&& echo '#!/bin/bash' > $LOCAL_OVERRIDES \
&& echo '# Local overrides of .wryn environment variables' >> $LOCAL_OVERRIDES
}

10
env/env.sh vendored Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Default shell environment
LOCAL_OVERRIDES="$HOME/.config/wryn/env.sh"
[ -f "$LOCAL_OVERRIDES" ] \
&& source "$LOCAL_OVERRIDES" \
|| {
touch $LOCAL_OVERRIDES \
&& echo '#!/bin/sh' > $LOCAL_OVERRIDES \
&& echo '# Local overrides of .wryn environment variables '>> $LOCAL_OVERRIDES
}

8
env/env.vim vendored Normal file
View File

@ -0,0 +1,8 @@
let $RC_DIR=expand("$HOME/.wryn")
let $VIM_DIR=expand("$RC_DIR/vim")
let $WRYNVIMRC=expand("$VIM_DIR/rc.vim")
let $WRYNBASH=expand("$RC_DIR/bashrc")
let $MYBASHRC=expand("$HOME/.bashrc")
" Local environment and environment overrides
source $HOME/.config/wryn/env.vim

14
env/env.zsh vendored Executable file
View File

@ -0,0 +1,14 @@
#!/bin/zsh
# Default zsh environment
RD_PATH="$HOME/RentDynamics"
SCHOOL_DIR="$HOME/School"
DOTWRYN="$HOME/.wryn"
LOCAL_OVERRIDES="$HOME/.config/wryn/env.zsh"
[ -f "$LOCAL_OVERRIDES" ] \
&& source "$LOCAL_OVERRIDES" \
|| {
touch $LOCAL_OVERRIDES \
&& echo '#!/bin/zsh' > $LOCAL_OVERRIDES \
&& echo '# Local overrides of .wryn environment variables '>> $LOCAL_OVERRIDES
}