summary refs log tree commit diff
path: root/pkgs/shells/fish/command-not-found.patch
blob: aaca001dcb67843476f141a6af0b7cbd386b8dd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish
index c3864a8..a12ac4d 100644
--- a/share/functions/__fish_config_interactive.fish
+++ b/share/functions/__fish_config_interactive.fish
@@ -230,7 +230,7 @@ function __fish_config_interactive -d "Initializations that should be performed
 		# Check for NixOS handler
 		else if test -f /run/current-system/sw/bin/command-not-found
 			function __fish_command_not_found_handler --on-event fish_command_not_found
-				/run/current-system/sw/bin/command-not-found $argv[1]
+				/run/current-system/sw/bin/command-not-found $argv
 			end
 		# Ubuntu Feisty places this command in the regular path instead
 		else if type -q -p command-not-found