From 6754b7e67b71511c8c06b75be6d4d06a386acbda Mon Sep 17 00:00:00 2001 From: Mayu Laierlence Date: Wed, 12 Jun 2024 12:28:13 +0200 Subject: [PATCH] feat(init): add custom functions and completions to `$fpath` (#5644) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #5644 Co-authored-by: Marc Cornellà --- oh-my-zsh.sh | 2 +- .../history-substring-search.plugin.zsh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index 2fb20298a..9660f93c9 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -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 diff --git a/plugins/history-substring-search/history-substring-search.plugin.zsh b/plugins/history-substring-search/history-substring-search.plugin.zsh index 63f0bdd42..077105ea3 100644 --- a/plugins/history-substring-search/history-substring-search.plugin.zsh +++ b/plugins/history-substring-search/history-substring-search.plugin.zsh @@ -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 -