1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00
nix-darwin/modules/programs/zsh
Sebastian Reuße 6ad463a764
zsh: don't be noisy when scripts are run with -u
When a script specifies the shell option "nounset" as part of the
shebang (e.g., via "#!/usr/bin/env -S zsh -u"), our initialization
scripts would produce error messages of the form:

    __ETC_FOO_SOURCED: parameter not set

These messages could probably be confusing to users when running such
scripts. By providing a fall-back in the parameter expansion, we can
avoid them.

This patch does not address interactive shell start-up, where such
messages may (or may not) be less problematic.

NixOS/nixpkgs@7d84dbdf5b
2024-09-11 14:07:24 +02:00
..
default.nix zsh: don't be noisy when scripts are run with -u 2024-09-11 14:07:24 +02:00
fzf-completion.zsh zsh: use container names for fzf docker completion 2017-07-18 22:34:09 +02:00
fzf-git.zsh zsh: add options for fzf completion and git 2017-02-21 22:52:08 +01:00
fzf-history.zsh fzf-history: don't enable by default and reverse 2017-02-21 21:32:26 +01:00