refactor(home:fish): split config
This commit is contained in:
parent
8f903a742a
commit
546ee5f965
5 changed files with 83 additions and 28 deletions
18
home/modules/console/shell/fish/binds.nix
Normal file
18
home/modules/console/shell/fish/binds.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ lib, config, osConfig, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.ooknet.shell.fish;
|
||||
admin = osConfig.ooknet.host.admin;
|
||||
in
|
||||
|
||||
{
|
||||
config = mkIf (cfg.enable || admin.shell == "fish") {
|
||||
programs.fish.functions = {
|
||||
fish_user_key_bindings = ''
|
||||
bind --preset -M insert \cf fe
|
||||
bind --preset -M insert \ec fzf_cd_widget
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue