Browse Source

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

Closes #5644

Co-authored-by: Marc Cornellà <marc@mcornella.com>
Mayu Laierlence 10 months ago
parent
commit
6754b7e67b

+ 1 - 1
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

+ 0 - 1
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
-