added local fpath

This commit is contained in:
pSox 2018-05-14 11:45:17 +01:00
parent acdb2cdfcc
commit 1a5d7679d2
1 changed files with 5 additions and 1 deletions

6
zshrc
View File

@ -13,9 +13,13 @@ zstyle :omz:plugins:ssh-agent identities $( [[ -e ~/.ssh/autoload ]] && cat ~/.s
zstyle :omz:plugins:ssh-agent lifetime 36h
# remove duplicates
typeset -U PATH path
typeset -U PATH path fpath
path=( /bin /sbin /usr/bin /usr/sbin $path )
# Set funtion paths
[[ -d /root/.local/share/zsh/functions ]] && fpath+=/root/.local/share/zsh/functions
[[ -d /root/.config/zsh/functions ]] && fpath+=/root/.config/zsh/functions
[[ "$OS" != "Windows_NT" ]] && [[ -f /etc/profile ]] && source /etc/profile
if [[ -z "$GOPATH" ]]