530cd7f76b9e7e129ad79b67fcf222f7278fc6da
- Author
- Carlo Sala <carlosalag@protonmail.com>
- Committer
- Carlo Sala <carlosalag@protonmail.com>
- Date
Message
fix(history-substring-search): source properly plugin
Diff
1diff --git a/plugins/history-substring-search/history-substring-search.plugin.zsh b/plugins/history-substring-search/history-substring-search.plugin.zsh
2index 05bdbcd75f7f263f9c2b820c270e530d021b89cb..63f0bdd4200375023003b66b8581bf4f241c0ee3 100644
3--- a/plugins/history-substring-search/history-substring-search.plugin.zsh
4+++ b/plugins/history-substring-search/history-substring-search.plugin.zsh
5@@ -1,5 +1,9 @@
6-0=${(%):-%N}
7-source ${0:A:h}/zsh-history-substring-search.zsh
8+# Handle $0 according to the standard:
9+# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
10+0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
11+0="${${(M)0:#/*}:-$PWD/$0}"
12+
13+source ${0:A:h}/history-substring-search.zsh
14
15
16 # Bind terminal-specific up and down keys