summary refs log tree commit diff
path: root/nixos/modules/programs/thefuck.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-10-03 02:11:17 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2018-10-03 02:11:17 +0200
commitbccd0faee40cbaf2839d71cfb48f3a27d0d8d015 (patch)
tree596e710e0c516e5dad18a2e53aeb3430b9dcf6c0 /nixos/modules/programs/thefuck.nix
parent358a1c8a28902da87ccfe49cec3b5f23bafa3d67 (diff)
downloadnixpkgs-bccd0faee40cbaf2839d71cfb48f3a27d0d8d015.tar
nixpkgs-bccd0faee40cbaf2839d71cfb48f3a27d0d8d015.tar.gz
nixpkgs-bccd0faee40cbaf2839d71cfb48f3a27d0d8d015.tar.bz2
nixpkgs-bccd0faee40cbaf2839d71cfb48f3a27d0d8d015.tar.lz
nixpkgs-bccd0faee40cbaf2839d71cfb48f3a27d0d8d015.tar.xz
nixpkgs-bccd0faee40cbaf2839d71cfb48f3a27d0d8d015.tar.zst
nixpkgs-bccd0faee40cbaf2839d71cfb48f3a27d0d8d015.zip
nixos/thefuck: don't run thefuck on `environment.shellInit'
The init script slightly differs depending on which shell is in use.
So for bash it should be in the interactiveShellInit as well.

In this case we don't need a mkIf as `bash` is enabled by default
on NixOS.
Diffstat (limited to 'nixos/modules/programs/thefuck.nix')
-rw-r--r--nixos/modules/programs/thefuck.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/thefuck.nix b/nixos/modules/programs/thefuck.nix
index f4ae5293476..21ed6603c1b 100644
--- a/nixos/modules/programs/thefuck.nix
+++ b/nixos/modules/programs/thefuck.nix
@@ -29,8 +29,8 @@ in
 
     config = mkIf cfg.enable {
       environment.systemPackages = with pkgs; [ thefuck ];
-      environment.shellInit = initScript;
 
+      programs.bash.interactiveShellInit = initScript;
       programs.zsh.interactiveShellInit = mkIf prg.zsh.enable initScript;
       programs.fish.interactiveShellInit = mkIf prg.fish.enable ''
         ${pkgs.thefuck}/bin/thefuck --alias | source