Translate command-not-found message

I have no idea why this function is defined twice.
This commit is contained in:
Fabian Homborg 2022-03-17 18:14:36 +01:00
parent 47294f4d29
commit 666032abbd
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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