New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
environment.shellAliases not honored for ls
#36282
Comments
Are you sure? I have the following working as expected on nixos-17.09 and nixos-unstable with bash and zsh.
|
Yes, I'm sure. I have a pile of aliases defined in |
If you use zsh, then environment.shellAliases is not used, you have to add it yourself which is counterintuitive IMO. |
This is bash, and all of my environment.shellAliases are being used except the one for |
That's because
And merge function for Line 149 in 7e40287
Merge function should work the other way round - replace default values with configuration |
Solved with #44441 |
Issue description
Defining a shell alias using
config.environment.shellAliases
for thels
command is not honored, due to this being defined afterwards:nixpkgs/nixos/modules/programs/shell.nix
Lines 17 to 21 in 56904d7
Steps to reproduce
Try overriding
config.environment.shellAliases = { ls = "..." };
Technical details
"x86_64-linux"
Linux 4.9.84, NixOS, 18.03pre130151.268d99b1fe4 (Impala)
yes
yes
nix-env (Nix) 1.11.16
"nixos-18.03pre130151.268d99b1fe4"
"nixos-17.09-17.09.3101.fd1d76bb1a8"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
The text was updated successfully, but these errors were encountered: