Skip to content

zsh: no matches found: github:BirdeeHub/nixCats-nvim#default #84

Answered by BirdeeHub
kohane27 asked this question in Q&A
Discussion options

You must be logged in to vote

Escape the #

In zsh # can be a matching/globbing character if you have the extended globbing setting on. If you also have the fail on no match setting on, it will then cause the command to fail rather than falling back to executing normally.

Put a \ before it.

nix flake init -t github:BirdeeHub/nixCats-nvim\#default

And if you plan to keep using both zsh and nix, as I do myself, you might want to turn the fail on no match setting off so that you can copy paste nix commands without this annoyance.

This is the zsh setting that makes it so that # can be used as a matching/globbing character.

setopt extendedglob

You can leave extendedglob on if you would like.

You should turn off the fail on …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kohane27
Comment options

@BirdeeHub
Comment options

Answer selected by BirdeeHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #83 on January 19, 2025 23:39.