nixpkgs/nixos/modules/programs/zsh
Sebastian Reuße 7d84dbdf5b nixos/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.
2022-10-24 14:22:50 +02:00
..
oh-my-zsh.nix nixos/*: mark pre-existing markdown descriptions as mdDoc 2022-08-19 22:40:58 +02:00
oh-my-zsh.xml programs.zsh: remove unnecessary with 2020-09-03 08:42:24 +02:00
zinputrc
zsh-autoenv.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
zsh-autosuggestions.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
zsh-syntax-highlighting.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
zsh.nix nixos/zsh: don’t be noisy when scripts are run with -u 2022-10-24 14:22:50 +02:00