mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
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.
This commit is contained in:
parent
23fabf81d7
commit
92d0d98a24
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue