Update env_loader to work with new path.
This commit is contained in:
parent
d65427a1a6
commit
a5c6341133
|
@ -65,11 +65,11 @@ export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -100'"
|
|||
# Auto suggestion config
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7"
|
||||
|
||||
# This will load the specified zsh files if they exist in the $ZDIR/env directory.
|
||||
# This will load the specified zsh files if they exist in the $ZDIR/environment directory.
|
||||
# It will load based on hostname & uname.
|
||||
env_loader(){
|
||||
[ -e ${ZDIR}/env/$OSTYPE/$1 ] && source ${ZDIR}/env/$OSTYPE/$1
|
||||
[ -e ${ZDIR}/env/$HOST/$1 ] && source ${ZDIR}/env/$HOST/$1
|
||||
[ -e ${ZDIR}/environment/$OSTYPE/$1 ] && source ${ZDIR}/environment/$OSTYPE/$1
|
||||
[ -e ${ZDIR}/environment/$HOST/$1 ] && source ${ZDIR}/environment/$HOST/$1
|
||||
}
|
||||
|
||||
user_script_dir="~/.scripts"
|
||||
|
|
Loading…
Reference in New Issue
Block a user