nixos/thefuck: move init scripts to programs.*.interactiveShellInit

`fuck` should only be used for interactive sessions, but nothing more
(so init files like `/etc/zshenv` become even more lightweight).
This commit is contained in:
Maximilian Bosch 2018-06-22 01:32:11 +02:00
parent fe948fd6b0
commit 6c66e15bbf
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

@ -31,8 +31,8 @@ in
environment.systemPackages = with pkgs; [ thefuck ];
environment.shellInit = initScript;
programs.zsh.shellInit = mkIf prg.zsh.enable initScript;
programs.fish.shellInit = mkIf prg.fish.enable ''
programs.zsh.interactiveShellInit = mkIf prg.zsh.enable initScript;
programs.fish.interactiveShellInit = mkIf prg.fish.enable ''
${pkgs.thefuck}/bin/thefuck --alias | source
'';
};