summaryrefslogtreecommitdiffstats
path: root/nixos/modules/programs/thefuck.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-06-22 01:32:11 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2018-06-22 01:32:11 +0200
commit6c66e15bbf75c773090fa553d67bdb98093f09de (patch)
tree56d6553b37b4f910707aee4fe07bd5d1d9a3ec2f /nixos/modules/programs/thefuck.nix
parentfe948fd6b01a67a8977271fa4129437296f14a8c (diff)
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).
Diffstat (limited to 'nixos/modules/programs/thefuck.nix')
-rw-r--r--nixos/modules/programs/thefuck.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/thefuck.nix b/nixos/modules/programs/thefuck.nix
index eb913477cf05..f4ae52934760 100644
--- a/nixos/modules/programs/thefuck.nix
+++ b/nixos/modules/programs/thefuck.nix
@@ -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
'';
};