aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/config.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/config.fish')
-rw-r--r--share/config.fish15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/config.fish b/share/config.fish
index 5eac39bf..455d40bb 100644
--- a/share/config.fish
+++ b/share/config.fish
@@ -11,6 +11,21 @@
set -g IFS \n\ \t
#
+# Create the default command_not_found handler
+#
+function __fish_default_command_not_found_handler
+ echo "fish: Unknown command '$argv'" >&2
+end
+
+#
+# Hook up the default as the principal command_not_found handler
+# This is likely to be overwritten in __fish_config_interactive
+#
+function __fish_command_not_found_handler --on-event fish_command_not_found
+ __fish_default_command_not_found_handler $argv
+end
+
+#
# Set default search paths for completions and shellscript functions
# unless they already exist
#