fix(alias-finder): use `?` quantifier for BSD compat (#13774)
Co-authored-by: Sediman <jason@sediman.com>
Diff
1diff --git a/plugins/alias-finder/alias-finder.plugin.zsh b/plugins/alias-finder/alias-finder.plugin.zsh
2index 6f24c7089cb13c6bfedaf5fd10c98a6a348ce45f..de5fcf673f896497666dea4f80732d9140af2bb9 100644
3--- a/plugins/alias-finder/alias-finder.plugin.zsh
4+++ b/plugins/alias-finder/alias-finder.plugin.zsh
5@@ -1,5 +1,5 @@
6 alias-finder() {
7- local cmd=" " exact="" longer="" cheaper="" wordEnd="'{0,1}$" finder="" filter=""
8+ local cmd=" " exact="" longer="" cheaper="" wordEnd="'?$" finder="" filter=""
910 # build command and options
11 for c in "$@"; do
12@@ -31,7 +31,7 @@ alias-finder() {
1314 # find with alias and grep, removing last word each time until no more words
15 while [[ $cmd != "" ]]; do
16- finder="'{0,1}$cmd$wordEnd"
17+ finder="'?$cmd$wordEnd"
1819 # make filter to find only shorter results than current cmd
20 if [[ $cheaper == true ]]; then