mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
skim: add fish integration
Add fish integration to `programs.skim`. PR #1549
This commit is contained in:
parent
57518cd0bf
commit
fc5619764e
1 changed files with 12 additions and 0 deletions
|
@ -91,6 +91,14 @@ in {
|
||||||
Whether to enable Zsh integration.
|
Whether to enable Zsh integration.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableFishIntegration = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
|
description = ''
|
||||||
|
Whether to enable Fish integration.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -120,5 +128,9 @@ in {
|
||||||
. ${pkgs.skim}/share/skim/key-bindings.zsh
|
. ${pkgs.skim}/share/skim/key-bindings.zsh
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
|
||||||
|
source ${pkgs.skim}/share/skim/key-bindings.fish && skim_key_bindings
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue