Merge pull request #42356 from Ma27/fix-thefuck-module

nixos/thefuck: move init scripts to `programs.*.interactiveShellInit`
This commit is contained in:
Jörg Thalheim
2018-06-22 07:09:12 +01:00
committed by GitHub

View File

@@ -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
'';
};