diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-15 23:41:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 23:41:05 +0100 |
commit | a51b4f21fbd91e1bf28ea1c547899e63c1d2ccfc (patch) | |
tree | ece2697ae928150745332bca0d87c41a54a21276 /nixos/modules/programs | |
parent | af68e9c9173c3914a3a5e02a797b003239078d0f (diff) | |
parent | 5764782921cdf941226f206e650936e95f6dded6 (diff) |
Merge pull request #198217 from eigengrau/shell-alias-double-dash
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/bash/bash.nix | 2 | ||||
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/bash/bash.nix b/nixos/modules/programs/bash/bash.nix index 249e99ddc4721..286faeadc489d 100644 --- a/nixos/modules/programs/bash/bash.nix +++ b/nixos/modules/programs/bash/bash.nix @@ -12,7 +12,7 @@ let cfg = config.programs.bash; bashAliases = concatStringsSep "\n" ( - mapAttrsFlatten (k: v: "alias ${k}=${escapeShellArg v}") + mapAttrsFlatten (k: v: "alias -- ${k}=${escapeShellArg v}") (filterAttrs (k: v: v != null) cfg.shellAliases) ); diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 29790e0dd759b..cb55717b588ab 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -12,7 +12,7 @@ let opt = options.programs.zsh; zshAliases = concatStringsSep "\n" ( - mapAttrsFlatten (k: v: "alias ${k}=${escapeShellArg v}") + mapAttrsFlatten (k: v: "alias -- ${k}=${escapeShellArg v}") (filterAttrs (k: v: v != null) cfg.shellAliases) ); |