You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fish: environment.shellAliases are not available in non-login shell #25800
Fish usually has environment.shellAliases available, but the aliases are now missing, when the shell is not a login shell (presumably because of #24314).
I think this issue is a little subtler than one would think: aliases are sourced, but only when the parent shell has not already sourced the interactive configuration.
This is out of line with the behavior of the other shells on NixOS. I have a fix which I've tested with your example here. I will post a link to the relevant PR momentarily (after I put it up).
So apparently outgoing SSH is blocked from the WiFi on this cruise ship, so I can't push commits with the remotes I have set up, and my sister is nagging me to get off the computer so we can go out. If you need a quick fix on your own machine (I will be back later today, while I still have internet access, to submit the new PR), just change the set -gx <...> lines in the NixOS module for fish (/nixos/modules/programs/fish.nix) to set -g <...> and your aliases will get sourced every time the shell starts, so changes will be reflected without a reboot or manually unsetting the relevant variable before starting a new shell (set -e __fish_nixos_interactive_config_sourced).
(The latter will do the trick if you want a quick fix without any changes to your Nixpkgs tree.)
Activity
therealpxc commentedon May 15, 2017
Agh, what a mess. Thanks for raising this issue.
therealpxc commentedon May 16, 2017
I think this issue is a little subtler than one would think: aliases are sourced, but only when the parent shell has not already sourced the interactive configuration.
This is out of line with the behavior of the other shells on NixOS. I have a fix which I've tested with your example here. I will post a link to the relevant PR momentarily (after I put it up).
therealpxc commentedon May 16, 2017
So apparently outgoing SSH is blocked from the WiFi on this cruise ship, so I can't push commits with the remotes I have set up, and my sister is nagging me to get off the computer so we can go out. If you need a quick fix on your own machine (I will be back later today, while I still have internet access, to submit the new PR), just change the
set -gx <...>lines in the NixOS module for fish (/nixos/modules/programs/fish.nix) toset -g <...>and your aliases will get sourced every time the shell starts, so changes will be reflected without a reboot or manually unsetting the relevant variable before starting a new shell (set -e __fish_nixos_interactive_config_sourced).(The latter will do the trick if you want a quick fix without any changes to your Nixpkgs tree.)
therealpxc commentedon May 16, 2017
there's a fix in this commit: 183082c
fish: (NixOS only) source configuration sections anew in all child sh…
fish: (NixOS only) source configuration sections anew in all child sh…
therealpxc commentedon May 22, 2017
fish: (NixOS only) source configuration sections anew in all child sh…