1 { config, lib, pkgs, ... }:
6 cfg = config.programs.autojump;
16 description = lib.mdDoc ''
17 Whether to enable autojump.
25 config = mkIf cfg.enable {
26 environment.pathsToLink = [ "/share/autojump" ];
27 environment.systemPackages = [ pkgs.autojump ];
29 programs.bash.interactiveShellInit = "source ${pkgs.autojump}/share/autojump/autojump.bash";
30 programs.zsh.interactiveShellInit = mkIf prg.zsh.enable "source ${pkgs.autojump}/share/autojump/autojump.zsh";
31 programs.fish.interactiveShellInit = mkIf prg.fish.enable "source ${pkgs.autojump}/share/autojump/autojump.fish";