1 { config, lib, pkgs, ... }:
4 cfg = config.programs.autojump;
11 enable = lib.mkOption {
12 type = lib.types.bool;
15 Whether to enable autojump.
23 config = lib.mkIf cfg.enable {
24 environment.pathsToLink = [ "/share/autojump" ];
25 environment.systemPackages = [ pkgs.autojump ];
27 programs.bash.interactiveShellInit = "source ${pkgs.autojump}/share/autojump/autojump.bash";
28 programs.zsh.interactiveShellInit = lib.mkIf prg.zsh.enable "source ${pkgs.autojump}/share/autojump/autojump.zsh";
29 programs.fish.interactiveShellInit = lib.mkIf prg.fish.enable "source ${pkgs.autojump}/share/autojump/autojump.fish";