diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2018-06-22 01:32:11 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2018-06-22 01:32:11 +0200 |
commit | 6c66e15bbf75c773090fa553d67bdb98093f09de (patch) | |
tree | 56d6553b37b4f910707aee4fe07bd5d1d9a3ec2f | |
parent | fe948fd6b01a67a8977271fa4129437296f14a8c (diff) | |
download | nixpkgs-6c66e15bbf75c773090fa553d67bdb98093f09de.tar nixpkgs-6c66e15bbf75c773090fa553d67bdb98093f09de.tar.gz nixpkgs-6c66e15bbf75c773090fa553d67bdb98093f09de.tar.bz2 nixpkgs-6c66e15bbf75c773090fa553d67bdb98093f09de.tar.lz nixpkgs-6c66e15bbf75c773090fa553d67bdb98093f09de.tar.xz nixpkgs-6c66e15bbf75c773090fa553d67bdb98093f09de.tar.zst nixpkgs-6c66e15bbf75c773090fa553d67bdb98093f09de.zip |
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).
-rw-r--r-- | nixos/modules/programs/thefuck.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/thefuck.nix b/nixos/modules/programs/thefuck.nix index eb913477cf0..f4ae5293476 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 ''; }; |