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:
parent
33db7cc6a6
commit
61ca2fc1c0
1 changed files with 3 additions and 6 deletions
|
@ -65,18 +65,15 @@ in {
|
||||||
home.packages = [ pkgs.mcfly ];
|
home.packages = [ pkgs.mcfly ];
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
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 ''
|
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 ''
|
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
|
||||||
source "${pkgs.mcfly}/share/mcfly/mcfly.fish"
|
${pkgs.mcfly}/bin/mcfly init fish | source
|
||||||
if status is-interactive
|
|
||||||
mcfly_key_bindings
|
|
||||||
end
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home.sessionVariables.MCFLY_KEY_SCHEME = cfg.keyScheme;
|
home.sessionVariables.MCFLY_KEY_SCHEME = cfg.keyScheme;
|
||||||
|
|
Loading…
Reference in a new issue