Merge pull request #47696 from Ma27/dont-run-thefuck-on-bash

nixos/thefuck: don't run thefuck on `environment.shellInit'
This commit is contained in:
Yegor Timoshenko 2018-10-13 15:12:50 +00:00 committed by GitHub
commit 605eb4098f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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