From 6cff8a57132de0e0daf16beeb0dd378bfa7e5f65 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 1 Apr 2022 21:01:32 +0200 Subject: [PATCH] Add functions to fpath in .zshrc --- .config/zsh/.zprofile | 1 - .config/zsh/.zshrc | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 8e3b592..fdb4814 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -180,7 +180,6 @@ case $(hostname) in esac [[ -f "${ZDOTDIR}"/zsecrets ]] && source "${ZDOTDIR}"/zsecrets -[[ -d "${ZDOTDIR}"/functions ]] && fpath+=( "${ZDOTDIR}"/functions ) && export fpath ############################# Daemons ########################################## diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 52775c9..eb64bd2 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -1,6 +1,8 @@ function() # Keep local variables in here. { +[[ -d "${ZDOTDIR}"/functions ]] && fpath+=( "${ZDOTDIR}"/functions ) + ############################## Completion ###################################### zmodload -i zsh/complist