aboutsummaryrefslogtreecommitdiff
path: root/share/cfg/fish.nix
diff options
context:
space:
mode:
authorMiran Bastaja <mbastaja@sorre.xyz>2024-12-27 11:20:22 +0100
committerMiran Bastaja <mbastaja@sorre.xyz>2024-12-27 11:20:42 +0100
commite97e7bb48117c6c07f77bb8610d1ae98cfd3bae0 (patch)
treedba5943770ca5d6f9c90ccfd728d868c59120436 /share/cfg/fish.nix
parent43ffe357cde8406ce2d639a70ed69c6919ed6c3b (diff)
fish: define command not found handler
Diffstat (limited to 'share/cfg/fish.nix')
-rw-r--r--share/cfg/fish.nix10
1 files changed, 10 insertions, 0 deletions
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";
+ };
+ };
+}