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" +