1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/modules/programs
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
..
bash treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
info refactor: rename environment.postBuild to environment.extraSetup 2024-08-17 02:50:56 +03:00
nix-index treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
ssh programs.ssh: add certificate authorities 2024-07-31 19:34:17 +02:00
zsh zsh: don't be noisy when scripts are run with -u 2024-09-11 14:07:24 +02:00
direnv.nix chore: remove mkpackageoptionmd deprecation 2024-07-01 16:24:41 +02:00
fish.nix mapAttrsFlatten -> mapAttrsToList 2024-07-27 13:37:28 +10:00
gnupg.nix gpg: Suppress stderr from gpg-connect-agent on shell init 2024-08-29 16:37:56 -04:00
man.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
tmux.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
vim.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00