1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

mcfly: switch to init command (#2301)

mcfly migrated its initialization method to a subcomand called `init`,
which available since mcfly 0.5.4 released on Feb 28, 2021.
This commit is contained in:
Mario Rodas 2021-08-29 22:42:54 -05:00 committed by GitHub
parent 33db7cc6a6
commit 61ca2fc1c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,18 +65,15 @@ in {
home.packages = [ pkgs.mcfly ];
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
source "${pkgs.mcfly}/share/mcfly/mcfly.bash"
eval "$(${pkgs.mcfly}/bin/mcfly init bash)"
'';
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
source "${pkgs.mcfly}/share/mcfly/mcfly.zsh"
eval "$(${pkgs.mcfly}/bin/mcfly init zsh)"
'';
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
source "${pkgs.mcfly}/share/mcfly/mcfly.fish"
if status is-interactive
mcfly_key_bindings
end
${pkgs.mcfly}/bin/mcfly init fish | source
'';
home.sessionVariables.MCFLY_KEY_SCHEME = cfg.keyScheme;