mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
default_command_not_found_handler: Only use $argv[1]
That's probably the nicer fix, otherwise this would print things like
Unknown command 'aiohsd 1 2 3'
when it should just say
Unknown command aiohsd
This commit is contained in:
@@ -12,7 +12,7 @@ or set -g __fish_added_user_paths
|
|||||||
# Create the default command_not_found handler
|
# Create the default command_not_found handler
|
||||||
#
|
#
|
||||||
function __fish_default_command_not_found_handler
|
function __fish_default_command_not_found_handler
|
||||||
printf "fish: Unknown command %s\n" (string escape -- "$argv") >&2
|
printf "fish: Unknown command %s\n" (string escape -- $argv[1]) >&2
|
||||||
end
|
end
|
||||||
|
|
||||||
if status --is-interactive
|
if status --is-interactive
|
||||||
|
|||||||
Reference in New Issue
Block a user