mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Put shell aliases in interactiveShellInit
This commit is contained in:
parent
c5e855e060
commit
5e6068d913
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,10 @@ cfge = config.environment;
|
|||
|
||||
cfg = config.programs.fish;
|
||||
|
||||
fishAliases = concatStringsSep "\n" (
|
||||
mapAttrsFlatten (k: v: "alias ${k}='${v}'") cfg.shellAliases
|
||||
);
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
|
@ -87,6 +91,8 @@ in
|
|||
${cfge.interactiveShellInit}
|
||||
|
||||
${cfg.promptInit}
|
||||
|
||||
${fishAliases}
|
||||
'';
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue