Add functions to fpath in .zshrc

This commit is contained in:
tastytea 2022-04-01 21:01:32 +02:00
parent 4d44b03add
commit 6cff8a5713
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,6 @@ case $(hostname) in
esac esac
[[ -f "${ZDOTDIR}"/zsecrets ]] && source "${ZDOTDIR}"/zsecrets [[ -f "${ZDOTDIR}"/zsecrets ]] && source "${ZDOTDIR}"/zsecrets
[[ -d "${ZDOTDIR}"/functions ]] && fpath+=( "${ZDOTDIR}"/functions ) && export fpath
############################# Daemons ########################################## ############################# Daemons ##########################################

View File

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