Resolving "zsh: no matches found" error when setting Cmd configuration to ["zsh", "-c"] #350
Replies: 3 comments 3 replies
-
|
Thanks for the input @justamanpop ! It's an interesting one, I think maybe this is an overly complicated default SelectCmd. I personally even have just "fzf" as my SelectCmd and it's pretty amazing as is. I think this should be simplified to prevent others from facing the same issue. Would you be interested in submitting a PR? It's a pretty simple change! Maybe we can just remove the pointer to begin with, that would fix it right? The default pointer is more than good enough. |
Beta Was this translation helpful? Give feedback.
-
|
I had this exact problem. The solution is to modify the SelectCmd = "fzf --ansi --layout=reverse --border --height=90% --pointer='*' --cycle --select-1 --prompt=Snippets:" |
Beta Was this translation helpful? Give feedback.
-
|
I think this should be implemented in the custom configuration section by calling pet configure zshthis would make more sense. because in bash this error never occurs |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Ran into issues with
pet execwhen setting default shell to zsh, wanted to show how I fixed it in case it helps someone (don't know the right place to put this, lmk if I should remove it)To set the shell in which pet runs commands to zsh, I set the Cmd field in the configuraton toml:
This, however gave an error when running
pet exec:zsh:1 no matches found --pointer=*After trying stuff out for a while, I found the issue was with the default SelectCmd:
SelectCmd = "fzf --ansi --layout=reverse --border --height=90% --pointer=* --cycle --prompt=Snippets:"zsh interprets the * in the command as a glob pattern, and so threw the error.
The fix was to set the
nogloboption in the SelectCmd:SelectCmd = "noglob fzf --ansi --layout=reverse --border --height=90% --pointer=* --cycle --prompt=Snippets:"Beta Was this translation helpful? Give feedback.
All reactions