diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-06 19:15:16 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-06 19:16:20 +0100 |
| commit | 58826bed694106e2c78424a63c6f3cec908b62ca (patch) | |
| tree | d901b0b12427dc0b6accabac64b2d1a78784a8bc /modules | |
| parent | modules/nix/nix-wrapper.sh: Ignore `notify-send` failure (diff) | |
| download | nixos-config-58826bed694106e2c78424a63c6f3cec908b62ca.zip | |
modules/fish: Define the keybindings as function
That's how fish actually wants you to define them.
Diffstat (limited to '')
| -rw-r--r-- | modules/by-name/fi/fish/module.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/by-name/fi/fish/module.nix b/modules/by-name/fi/fish/module.nix index 6f13e39f..bb11d346 100644 --- a/modules/by-name/fi/fish/module.nix +++ b/modules/by-name/fi/fish/module.nix @@ -69,10 +69,15 @@ mkMode = mode: attr: builtins.concatStringsSep "" (lib.mapAttrsToList (mkBinding mode) attr); keymappings = '' - fish_vi_key_bindings - bind --erase --all + function fish_my_key_bindings + fish_vi_key_bindings + bind --erase --all '' - + builtins.concatStringsSep "\n" (lib.mapAttrsToList mkMode keymappings_raw); + + builtins.concatStringsSep "\n" (lib.mapAttrsToList mkMode keymappings_raw) + + '' + end + set -g fish_key_bindings fish_my_key_bindings + ''; in { options.soispha.programs.fish = { enable = lib.mkEnableOption "fish"; |
