From 5b8ac32b155618c546178ba7d51f30e61f90c008 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 4 Apr 2021 12:10:48 +0200 Subject: [PATCH] [Fish] Stop searching packages automatically on wrong command --- org/config/fish.org | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/org/config/fish.org b/org/config/fish.org index a58f3f3..c5f919c 100644 --- a/org/config/fish.org +++ b/org/config/fish.org @@ -669,3 +669,26 @@ By default, continue a download that was interupted. #+BEGIN_SRC fish abbr wget 'wget -c' #+END_SRC + +* Last thing before we’re done +:PROPERTIES: +:CUSTOM_ID: Last-thing-before-we-re-done-670f1461 +:END: +For some reason, Fish began searching for packages when I enter a command name +wrong. For instance, if I type ~vim~, I get something like this: +#+BEGIN_SRC text :tangle no +$ vim +fish: Unknown command: vim +usr/bin/vim is owned by extra/gvim 8.2.2653-1 +usr/bin/vim is owned by extra/vim 8.2.2653-1 +#+END_SRC + +But I don’t want that, it slows down my shell. So, in order to fix that, we need +the following lines: +#+BEGIN_SRC fish +function fish_command_not_found + __fish_default_command_not_found_handler $argv +end +#+END_SRC + +Tadah! No more package suggestions from fish!