mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Translate command-not-found message
I have no idea why this function is defined twice.
This commit is contained in:
parent
47294f4d29
commit
666032abbd
|
@ -12,7 +12,7 @@ or set -g __fish_added_user_paths
|
|||
# Create the default command_not_found handler
|
||||
#
|
||||
function __fish_default_command_not_found_handler
|
||||
printf "fish: Unknown command: %s\n" (string escape -- $argv[1]) >&2
|
||||
printf (_ "fish: Unknown command: %s\n") (string escape -- $argv[1]) >&2
|
||||
for file in $PATH/$argv[1]
|
||||
if test -e $file -a ! -x $file
|
||||
printf (_ "fish: %s exists but isn't executable\n") (string escape -- $file) >&2
|
||||
|
|
|
@ -12,7 +12,7 @@ if test -r /etc/os-release
|
|||
end
|
||||
|
||||
function __fish_default_command_not_found_handler
|
||||
printf "fish: Unknown command: %s\n" (string escape -- $argv[1]) >&2
|
||||
printf (_ "fish: Unknown command: %s\n") (string escape -- $argv[1]) >&2
|
||||
for file in $PATH/$argv[1]
|
||||
if test -e $file -a ! -x $file
|
||||
printf (_ "fish: %s exists but isn't executable\n") (string escape -- $file) >&2
|
||||
|
|
Loading…
Reference in New Issue
Block a user