From 60a68f67483aa7e62baba8ecb13230df11693a00 Mon Sep 17 00:00:00 2001 From: Michel Date: Sat, 8 Apr 2023 20:19:23 +0200 Subject: [PATCH] refactor(zsh): set paths early so other parts can use them --- .zshrc | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.zshrc b/.zshrc index a0306cb..9209721 100644 --- a/.zshrc +++ b/.zshrc @@ -11,6 +11,23 @@ SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' WORDCHARS=${WORDCHARS//[\/]} +### +### Path +### + +path=($path $HOME/.local/bin) +path=($path $HOME/bin) +path=($path $HOME/go/bin) + +path=($path $HOME/dev_local/bin) +#export LD_LIBRARY_PATH=$HOME/dev_local/lib + +fpath=($fpath /usr/share/zsh/site-functions) + +# Remove duplicates +typeset -U path fpath + + ### ### Modules ### @@ -290,21 +307,7 @@ setopt no_check_jobs # Prevent SIGHUP to jobs on shell exit. setopt no_hup - -### -### Path -### - -path=($path $HOME/.local/bin) -path=($path $HOME/bin) -path=($path $HOME/go/bin) - -path=($path $HOME/dev_local/bin) -#export LD_LIBRARY_PATH=$HOME/dev_local/lib - -fpath=($fpath /usr/share/zsh/site-functions) - -# Remove duplicates +# Remove path duplicates typeset -U path fpath