From 1a5d7679d29eb9f2a7fa83f525c02c1e11a0c373 Mon Sep 17 00:00:00 2001 From: pSox Date: Mon, 14 May 2018 11:45:17 +0100 Subject: [PATCH] added local fpath --- zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 01fe280..ca26176 100755 --- a/zshrc +++ b/zshrc @@ -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" ]]