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
|
@ -1,4 +1,4 @@
|
|||
export XDG_CONFIG_DIR="$HOME/.config"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
|
||||
|
||||
|
8
.zshrc
8
.zshrc
|
@ -99,6 +99,10 @@ if [ ! -d ${ZSH_CONFIG_DIR:="${XDG_CONFIG_DIR:-$HOME/.config}/zsh"} ]; then
|
|||
return
|
||||
fi
|
||||
|
||||
if [[ -f $HOME/.profile ]]; then
|
||||
source $HOME/.profile
|
||||
fi
|
||||
|
||||
# //TODO: Prints error when -no- files are found
|
||||
# Load bootstrap settings (00-19) before plugin initialization
|
||||
print_dbg "Starting bootstrap (00-19)...\n"
|
||||
|
@ -139,6 +143,9 @@ load_config_files $ZSH_CONFIG_DIR 3456789
|
|||
# unset GLOB
|
||||
# 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 ZGEN_DIR -- Needs to remain set for some plugins to function
|
||||
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
|
||||
export GOPATH="$HOME/Code/go"
|
||||
export PATH="$PATH:$GOPATH/bin"
|
||||
|
||||
|
|
Loading…
Reference in a new issue