new environment setup
This commit is contained in:
15
env/env.bash
vendored
Executable file
15
env/env.bash
vendored
Executable 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
10
env/env.sh
vendored
Executable 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
8
env/env.vim
vendored
Normal 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
14
env/env.zsh
vendored
Executable 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
|
||||
}
|
Reference in New Issue
Block a user