Skip to content

Commit

Permalink
Do not source history-substring-search if already loaded (sorin-iones…
Browse files Browse the repository at this point in the history
  • Loading branch information
amynbe authored May 2, 2020
1 parent 530ea10 commit 13c61ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/history-substring-search/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
pmodload 'editor'

# Source module files.
source "${0:h}/external/zsh-history-substring-search.zsh" || return 1
if (( ! $+functions[history-substring-search-up] )); then
source "${0:h}/external/zsh-history-substring-search.zsh" || return 1
fi

#
# Search
Expand Down

0 comments on commit 13c61ba

Please sign in to comment.