diff options
| author | Miran Bastaja <mbastaja@sorre.xyz> | 2024-12-27 11:20:22 +0100 |
|---|---|---|
| committer | Miran Bastaja <mbastaja@sorre.xyz> | 2024-12-27 11:20:42 +0100 |
| commit | e97e7bb48117c6c07f77bb8610d1ae98cfd3bae0 (patch) | |
| tree | dba5943770ca5d6f9c90ccfd728d868c59120436 | |
| parent | 43ffe357cde8406ce2d639a70ed69c6919ed6c3b (diff) | |
fish: define command not found handler
| -rw-r--r-- | share/cfg/default.nix | 1 | ||||
| -rw-r--r-- | share/cfg/fish.nix | 10 |
2 files changed, 11 insertions, 0 deletions
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"; + }; + }; +} |
