feat(init): add custom functions and completions to $fpath (#5644)

Closes #5644

Co-authored-by: Marc Cornellà <marc@mcornella.com>
This commit is contained in:
Mayu Laierlence 2024-06-12 12:28:13 +02:00 committed by Marc Cornellà
parent fee61a7c47
commit 6754b7e67b
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
2 changed files with 1 additions and 2 deletions

View file

@ -71,7 +71,7 @@ source "$ZSH/tools/check_for_upgrade.sh"
# Initializes Oh My Zsh
# add a function path
fpath=("$ZSH/functions" "$ZSH/completions" $fpath)
fpath=($ZSH/{functions,completions} $ZSH_CUSTOM/{functions,completions} $fpath)
# Load all stock functions (from $fpath files) called below.
autoload -U compaudit compinit zrecompile

View file

@ -16,4 +16,3 @@ if [[ -n "$terminfo[kcud1]" ]]; then
bindkey -M emacs "$terminfo[kcud1]" history-substring-search-down
bindkey -M viins "$terminfo[kcud1]" history-substring-search-down
fi