From b9ceee0ed389303f65b1c461e6e419fc4a486fb4 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 24 Feb 2019 16:22:41 +0100 Subject: [PATCH] Move XDG specification to .profile, get called (manually) by zshrc and automatically by bash. --- .zshenv => .profile | 2 +- .zshrc | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) rename .zshenv => .profile (97%) diff --git a/.zshenv b/.profile similarity index 97% rename from .zshenv rename to .profile index 762de4a..cc11a14 100644 --- a/.zshenv +++ b/.profile @@ -1,4 +1,4 @@ export XDG_CONFIG_DIR="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" - + diff --git a/.zshrc b/.zshrc index 5390abc..f8d63ad 100644 --- a/.zshrc +++ b/.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" +