fish: pass all of argv to command-not-found

+15
+13
pkgs/shells/fish/command-not-found.patch
···
··· 1 + diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish 2 + index c3864a8..a12ac4d 100644 3 + --- a/share/functions/__fish_config_interactive.fish 4 + +++ b/share/functions/__fish_config_interactive.fish 5 + @@ -230,7 +230,7 @@ function __fish_config_interactive -d "Initializations that should be performed 6 + # Check for NixOS handler 7 + else if test -f /run/current-system/sw/bin/command-not-found 8 + function __fish_command_not_found_handler --on-event fish_command_not_found 9 + - /run/current-system/sw/bin/command-not-found $argv[1] 10 + + /run/current-system/sw/bin/command-not-found $argv 11 + end 12 + # Ubuntu Feisty places this command in the regular path instead 13 + else if type -q -p command-not-found
+2
pkgs/shells/fish/default.nix
··· 4 name = "fish-${version}"; 5 version = "2.2.0"; 6 7 src = fetchurl { 8 url = "http://fishshell.com/files/${version}/${name}.tar.gz"; 9 sha256 = "0ympqz7llmf0hafxwglykplw6j5cz82yhlrw50lw4bnf2kykjqx7";
··· 4 name = "fish-${version}"; 5 version = "2.2.0"; 6 7 + patches = [ ./command-not-found.patch ]; 8 + 9 src = fetchurl { 10 url = "http://fishshell.com/files/${version}/${name}.tar.gz"; 11 sha256 = "0ympqz7llmf0hafxwglykplw6j5cz82yhlrw50lw4bnf2kykjqx7";