aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_config_interactive.fish
diff options
context:
space:
mode:
authorGravatar Nathan Zadoks <nathan@nathan7.eu>2016-01-03 14:05:39 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-01-03 14:32:12 +0100
commit92d0d98a24883f43bcde5567cde0386f27583055 (patch)
treece438cb2cca2f97cf3661f521d8488a9147d19a5 /share/functions/__fish_config_interactive.fish
parent23fabf81d7041bf9941f4db72aed7c62d656c7b7 (diff)
Pass the full argv to the NixOS command-not-found handler
This patch is currently floated from the NixOS side as part of https://github.com/NixOS/nixpkgs/pull/12000, but prior versions of the hook ignore anything but the first argument anyway, so this is backwards-compatible.
Diffstat (limited to 'share/functions/__fish_config_interactive.fish')
-rw-r--r--share/functions/__fish_config_interactive.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish
index 0d9ba486..314e265f 100644
--- a/share/functions/__fish_config_interactive.fish
+++ b/share/functions/__fish_config_interactive.fish
@@ -194,7 +194,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