mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00: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
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue