Zsh: Move fpath addition to .zshenv to have it available in scripts

This commit is contained in:
tastytea 2022-04-03 04:34:13 +02:00
parent e8490692b3
commit 64c12cd4cf
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 1 additions and 2 deletions

1
.config/zsh/.zshenv Normal file
View File

@ -0,0 +1 @@
[[ -d "${ZDOTDIR}"/functions ]] && fpath+=( "${ZDOTDIR}"/functions )

View File

@ -1,8 +1,6 @@
function() # Keep local variables in here. function() # Keep local variables in here.
{ {
[[ -d "${ZDOTDIR}"/functions ]] && fpath+=( "${ZDOTDIR}"/functions )
############################## Completion ###################################### ############################## Completion ######################################
zmodload zsh/complist zmodload zsh/complist