From 64c12cd4cf3da6f882ae6798e3b1d60e5701f178 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 3 Apr 2022 04:34:13 +0200 Subject: [PATCH] Zsh: Move fpath addition to .zshenv to have it available in scripts --- .config/zsh/.zshenv | 1 + .config/zsh/.zshrc | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 .config/zsh/.zshenv diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv new file mode 100644 index 0000000..4d396b5 --- /dev/null +++ b/.config/zsh/.zshenv @@ -0,0 +1 @@ +[[ -d "${ZDOTDIR}"/functions ]] && fpath+=( "${ZDOTDIR}"/functions ) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 9cccade..575bcce 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -1,8 +1,6 @@ function() # Keep local variables in here. { -[[ -d "${ZDOTDIR}"/functions ]] && fpath+=( "${ZDOTDIR}"/functions ) - ############################## Completion ###################################### zmodload zsh/complist