Move XDG specification to .profile, get called (manually) by zshrc and automatically by bash.
This commit is contained in:
parent
fa1db16f74
commit
b9ceee0ed3
2 changed files with 9 additions and 1 deletions
8
.zshrc
8
.zshrc
|
@ -99,6 +99,10 @@ if [ ! -d ${ZSH_CONFIG_DIR:="${XDG_CONFIG_DIR:-$HOME/.config}/zsh"} ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -f $HOME/.profile ]]; then
|
||||||
|
source $HOME/.profile
|
||||||
|
fi
|
||||||
|
|
||||||
# //TODO: Prints error when -no- files are found
|
# //TODO: Prints error when -no- files are found
|
||||||
# Load bootstrap settings (00-19) before plugin initialization
|
# Load bootstrap settings (00-19) before plugin initialization
|
||||||
print_dbg "Starting bootstrap (00-19)...\n"
|
print_dbg "Starting bootstrap (00-19)...\n"
|
||||||
|
@ -139,6 +143,9 @@ load_config_files $ZSH_CONFIG_DIR 3456789
|
||||||
# unset GLOB
|
# unset GLOB
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
|
# put personal scripts on the PATH to be callable
|
||||||
|
export PATH="$(du $ZSH_CONFIG_DIR/scripts/ | cut -f2 | tr '\n' ':')$PATH"
|
||||||
|
|
||||||
unset ZSH_CONFIG_DIR
|
unset ZSH_CONFIG_DIR
|
||||||
# unset ZGEN_DIR -- Needs to remain set for some plugins to function
|
# unset ZGEN_DIR -- Needs to remain set for some plugins to function
|
||||||
unset ZGEN_PARENT_DIR
|
unset ZGEN_PARENT_DIR
|
||||||
|
@ -150,3 +157,4 @@ unfunction check_zgen_installation
|
||||||
# //FIXME this needs to get the hell out of here -> put it in an env loading file
|
# //FIXME this needs to get the hell out of here -> put it in an env loading file
|
||||||
export GOPATH="$HOME/Code/go"
|
export GOPATH="$HOME/Code/go"
|
||||||
export PATH="$PATH:$GOPATH/bin"
|
export PATH="$PATH:$GOPATH/bin"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue