refactor(zsh): set paths early so other parts can use them
This commit is contained in:
parent
1e31e8d074
commit
60a68f6748
33
.zshrc
33
.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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user