Gabriella439 / nixos-in-production

Source files for the book "NixOS in Production"
Other
485 stars 20 forks source link

follow up on zsh with nix commands #10

Closed rolfst closed 1 year ago

rolfst commented 1 year ago

Hi this is a follow up on nix commands on zsh as complementary on #8 . I noticed that each command containing a '#' in some zsh configuration fails.

I came upon the following nix eval .#machine.config.networking.firewall.allowedTCPPorts this can also be fixed with this: nix eval '.#machine.config.networking.firewall.allowedTCPPorts'

Gabriella439 commented 1 year ago

do you happen to know which zsh configuration option requires this?

rolfst commented 1 year ago

yes: setopt extended_glob # Enable more powerful glob features in .zshrc`

shapr commented 1 year ago

I was happily surprised that the book already handled my zsh with extended_glob! :tada: