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//[\/]}
|
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
|
### Modules
|
||||||
###
|
###
|
||||||
@ -290,21 +307,7 @@ setopt no_check_jobs
|
|||||||
# Prevent SIGHUP to jobs on shell exit.
|
# Prevent SIGHUP to jobs on shell exit.
|
||||||
setopt no_hup
|
setopt no_hup
|
||||||
|
|
||||||
|
# Remove path duplicates
|
||||||
###
|
|
||||||
### 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
|
typeset -U path fpath
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user