Updated environment variable format

This commit is contained in:
Wryn Wagner 2021-02-24 15:29:07 -07:00
parent 4e4cd94784
commit 60c8bd1711
4 changed files with 14 additions and 35 deletions

12
env/env vendored Executable file
View File

@ -0,0 +1,12 @@
DOTWRYN="$HOME/.wryn"
SCHOOL_PATH="$HOME/School"
RD_PATH="$HOME/RentDynamics"
SFX_PATH="$HOME/Media/sfx"
# ordered from least-preferred to most-preferred
PREFERRED_EDITOR=(vi vim)
# plays audio files located throughout the system
MEDIA_ENGINE="$(which canberra-gtk-play) -f"
source "$LOCAL_OVERRIDES"

15
env/env.bash vendored
View File

@ -1,15 +0,0 @@
#!/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
}

5
env/env.vim vendored
View File

@ -12,15 +12,14 @@ let $ZSHRC=expand("$HOME/.zshrc")
" ........... vice, lanox, nightsky, made_of_code, moss, skittles_berry, pf_earth
"
" customs : snow
let $COLORSCHEME="skittles_autumn"
let $COLORSCHEME="default"
" }}}
" -- Web Browser Settings --------------------------------------- {{{
" set the webbrowser locally
" let $WEBBROWSER=""
"let $WEBBROWSER=""
" }}}
" -- Local Environment Overrides -------------------------------- {{{
source $HOME/.config/wryn/env.vim
" }}}

17
env/env.zsh vendored
View File

@ -1,17 +0,0 @@
#!/bin/zsh
# Default zsh environment
RD_PATH="$HOME/RentDynamics"
SCHOOL_DIR="$HOME/School"
DOTWRYN="$HOME/.wryn"
# ordered from least-preferred to most-preferred
PREFERRED_EDITOR=(vi vim)
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
}