Skip to content

Instantly share code, notes, and snippets.

@pH-7
Created August 12, 2023 04:52
Show Gist options
  • Save pH-7/1a5be8ad13060c4a36fd6434ebd80dfa to your computer and use it in GitHub Desktop.
Save pH-7/1a5be8ad13060c4a36fd6434ebd80dfa to your computer and use it in GitHub Desktop.
Run the following in your terminal to fix the unescaped arguments with matching arguments with Z shell. This will fix errors such as "zsh: no matches found: head^" error
echo "\n# Allow unmatched wildcard expressions in zsh\nsetopt NO_NOMATCH" >> ~/.zshrc
@pH-7
Copy link
Author

pH-7 commented Aug 12, 2023

  1. In your terminal, run setopt NO_NOMATCH. You can easily add it to your .zshrc file thanks to the following line
echo "\n# Allow unmatched wildcard expressions in zsh\nsetopt NO_NOMATCH" >> ~/.zshrc

Screenshot 2023-08-12 at 2 54 46 pm

  1. Your zshrc will now have this at the bottom

Screenshot 2023-08-12 at 2 53 53 pm

  1. Then, reload your .zshrc by running source ~/.zshrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment