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:
parent
33db7cc6a6
commit
61ca2fc1c0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue