From e97e7bb48117c6c07f77bb8610d1ae98cfd3bae0 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Fri, 27 Dec 2024 11:20:22 +0100 Subject: fish: define command not found handler --- share/cfg/default.nix | 1 + share/cfg/fish.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 share/cfg/fish.nix (limited to 'share/cfg') diff --git a/share/cfg/default.nix b/share/cfg/default.nix index 3dba82f..e95753c 100644 --- a/share/cfg/default.nix +++ b/share/cfg/default.nix @@ -12,6 +12,7 @@ ./helix.nix ./gallery-dl.nix ./shellenv.nix + ./fish.nix ./hyprland.nix ./jujutsu.nix ./emacs.nix diff --git a/share/cfg/fish.nix b/share/cfg/fish.nix new file mode 100644 index 0000000..ced92c1 --- /dev/null +++ b/share/cfg/fish.nix @@ -0,0 +1,10 @@ +{ ... }: +{ + programs.fish.functions = { + fish_command_not_found = "echo Did not find command $argv[1]"; + __fish_command_not_found_handler = { + body = "fish_command_not_found"; + onEvent = "fish_command_not_found"; + }; + }; +} -- cgit v1.3.1