mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-19 09:51:16 -03:00
Compare commits
6 Commits
4.2.1
...
macos-apro
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
233355bc9b | ||
|
|
5c2073135e | ||
|
|
58cc0ad760 | ||
|
|
41387a6a3a | ||
|
|
ee94272eaf | ||
|
|
dd6000f1fd |
@@ -1,3 +1,6 @@
|
|||||||
|
fish ?.?.? (released ???)
|
||||||
|
=========================
|
||||||
|
|
||||||
fish 4.2.1 (released November 13, 2025)
|
fish 4.2.1 (released November 13, 2025)
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -152,7 +152,7 @@ checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fish"
|
name = "fish"
|
||||||
version = "4.2.1"
|
version = "4.2.1-snapshot"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"cc",
|
"cc",
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ debug = true
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "fish"
|
name = "fish"
|
||||||
version = "4.2.1"
|
version = "4.2.1-snapshot"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
rust-version.workspace = true
|
rust-version.workspace = true
|
||||||
default-run = "fish"
|
default-run = "fish"
|
||||||
|
|||||||
3
po/de.po
3
po/de.po
@@ -2328,6 +2328,9 @@ msgstr ""
|
|||||||
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "help: %s is not a valid command: %s\\n"
|
msgid "help: %s is not a valid command: %s\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
3
po/en.po
3
po/en.po
@@ -2326,6 +2326,9 @@ msgstr ""
|
|||||||
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "help: %s is not a valid command: %s\\n"
|
msgid "help: %s is not a valid command: %s\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
3
po/fr.po
3
po/fr.po
@@ -2457,6 +2457,9 @@ msgstr ""
|
|||||||
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "help: %s is not a valid command: %s\\n"
|
msgid "help: %s is not a valid command: %s\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
3
po/pl.po
3
po/pl.po
@@ -2322,6 +2322,9 @@ msgstr ""
|
|||||||
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "help: %s is not a valid command: %s\\n"
|
msgid "help: %s is not a valid command: %s\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2327,6 +2327,9 @@ msgstr ""
|
|||||||
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "help: %s is not a valid command: %s\\n"
|
msgid "help: %s is not a valid command: %s\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
3
po/sv.po
3
po/sv.po
@@ -2323,6 +2323,9 @@ msgstr ""
|
|||||||
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "help: %s is not a valid command: %s\\n"
|
msgid "help: %s is not a valid command: %s\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -2355,6 +2355,9 @@ msgstr "foo=bar 变量覆盖"
|
|||||||
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
msgstr "funced: 无法使用 $EDITOR '$editor' 的值,因为找不到命令 '$editor[1]'"
|
msgstr "funced: 无法使用 $EDITOR '$editor' 的值,因为找不到命令 '$editor[1]'"
|
||||||
|
|
||||||
|
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
|
msgstr "funced: 无法使用 $VISUAL '$editor' 的值,因为找不到命令 '$editor[1]'"
|
||||||
|
|
||||||
msgid "help: %s is not a valid command: %s\\n"
|
msgid "help: %s is not a valid command: %s\\n"
|
||||||
msgstr "help: %s 不是有效的命令:%s\\n"
|
msgstr "help: %s 不是有效的命令:%s\\n"
|
||||||
|
|
||||||
|
|||||||
@@ -2330,6 +2330,9 @@ msgstr "foo=bar 變數覆寫"
|
|||||||
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
msgid "funced: The value for $EDITOR '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
msgstr "funced:$EDITOR 的值「$editor」無法使用,找不到命令「$editor[1]」"
|
msgstr "funced:$EDITOR 的值「$editor」無法使用,找不到命令「$editor[1]」"
|
||||||
|
|
||||||
|
msgid "funced: The value for $VISUAL '$editor' could not be used because the command '$editor[1]' could not be found"
|
||||||
|
msgstr "funced:$VISUAL 的值「$editor」無法使用,找不到命令「$editor[1]」"
|
||||||
|
|
||||||
msgid "help: %s is not a valid command: %s\\n"
|
msgid "help: %s is not a valid command: %s\\n"
|
||||||
msgstr "help:%s 不是有效的命令:%s\\n"
|
msgstr "help:%s 不是有效的命令:%s\\n"
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ complete -c man -n 'string match -q -- "*/*" (commandline -t | string collect)'
|
|||||||
if command -q man
|
if command -q man
|
||||||
# We have a conditionally-defined man function,
|
# We have a conditionally-defined man function,
|
||||||
# so we need to check for existence here.
|
# so we need to check for existence here.
|
||||||
if echo | MANPAGER=cat command man -l - &>/dev/null
|
if echo | __fish_without_manpager command man -l - &>/dev/null
|
||||||
complete -c man -s l -l local-file -d "Local file" -r
|
complete -c man -s l -l local-file -d "Local file" -r
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ if not type -q apropos
|
|||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
# Check for macOS Catalina or above.
|
|
||||||
if test (__fish_uname) = Darwin
|
if test (__fish_uname) = Darwin
|
||||||
and test (string match -r "^\d+" "$(uname -r)") -ge 19
|
|
||||||
and test -x /usr/libexec/makewhatis
|
and test -x /usr/libexec/makewhatis
|
||||||
|
|
||||||
set -l dir
|
set -l dir
|
||||||
@@ -18,6 +16,11 @@ if test (__fish_uname) = Darwin
|
|||||||
end
|
end
|
||||||
|
|
||||||
function __fish_apropos -V dir
|
function __fish_apropos -V dir
|
||||||
|
if test "$(command -v apropos)" != /usr/bin/apropos
|
||||||
|
__fish_without_manpager apropos "$argv"
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
# macOS 10.15 "Catalina" has a read only filesystem where the whatis database should be.
|
# macOS 10.15 "Catalina" has a read only filesystem where the whatis database should be.
|
||||||
# The whatis database is non-existent, so apropos tries (and fails) to create it every time,
|
# The whatis database is non-existent, so apropos tries (and fails) to create it every time,
|
||||||
# which can take seconds.
|
# which can take seconds.
|
||||||
@@ -34,17 +37,19 @@ if test (__fish_uname) = Darwin
|
|||||||
set age (path mtime -R -- $whatis)
|
set age (path mtime -R -- $whatis)
|
||||||
end
|
end
|
||||||
|
|
||||||
MANPATH="$dir" MANPAGER=cat WHATISPAGER=cat apropos "$argv"
|
MANPATH="$dir" __fish_without_manpager apropos "$argv"
|
||||||
|
|
||||||
if test $age -ge $max_age
|
if test $age -ge $max_age
|
||||||
test -d "$dir" || mkdir -m 700 -p $dir
|
test -d "$dir" || mkdir -m 700 -p $dir
|
||||||
/bin/sh -c '( "$@" ) >/dev/null 2>&1 </dev/null &' -- /usr/libexec/makewhatis -o "$whatis" (/usr/bin/manpath | string split : | xargs realpath)
|
/bin/sh -c '( "$@" ) >/dev/null 2>&1 </dev/null &' -- \
|
||||||
|
/usr/libexec/makewhatis -o "$whatis" \
|
||||||
|
(/usr/bin/manpath | string split : | xargs realpath)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
function __fish_apropos
|
function __fish_apropos
|
||||||
# we only ever prefix match for completions. This also ensures results for bare apropos <TAB>
|
# we only ever prefix match for completions. This also ensures results for bare apropos <TAB>
|
||||||
# (apropos '' gives no results, but apropos '^' lists all manpages)
|
# (apropos '' gives no results, but apropos '^' lists all manpages)
|
||||||
MANPAGER=cat WHATISPAGER=cat apropos "$argv"
|
__fish_without_manpager apropos "$argv"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ function __fish_print_help --description "Print help for the specified fish func
|
|||||||
end
|
end
|
||||||
set -l args -l (path filter -- $man1/$item.1 $man1/$item.1.gz)[1]
|
set -l args -l (path filter -- $man1/$item.1 $man1/$item.1.gz)[1]
|
||||||
# Work around macOS/FreeBSD man not supporting -l yet (only mandoc really needs it).
|
# Work around macOS/FreeBSD man not supporting -l yet (only mandoc really needs it).
|
||||||
if not MANPAGER=cat WHATISPAGER=cat command man -l $args[2] &>/dev/null
|
if not __fish_without_manpager command man -l $args[2] &>/dev/null
|
||||||
set -e args[1]
|
set -e args[1]
|
||||||
end
|
end
|
||||||
command man $args
|
command man $args
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ function __fish_print_port_packages
|
|||||||
|
|
||||||
__fish_cached -t 250 -k port '
|
__fish_cached -t 250 -k port '
|
||||||
printf "all\ncurrent\nactive\ninactive\ninstalled\nuninstalled\noutdated\n"
|
printf "all\ncurrent\nactive\ninactive\ninstalled\nuninstalled\noutdated\n"
|
||||||
port echo all | awk \'{$1=$1};1\'
|
port echo all | awk \'{$1=$1};1\''
|
||||||
'
|
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|||||||
7
share/functions/__fish_without_manpager.fish
Normal file
7
share/functions/__fish_without_manpager.fish
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
function __fish_without_manpager
|
||||||
|
MANPAGER=cat WHATISPAGER=cat if test "$argv[1]" = command
|
||||||
|
command $argv[2..]
|
||||||
|
else
|
||||||
|
$argv
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -376,7 +376,7 @@ function __fish_config_matching
|
|||||||
if not set -q argv[1]
|
if not set -q argv[1]
|
||||||
set -a paths (status list-files $prefix)
|
set -a paths (status list-files $prefix)
|
||||||
else
|
else
|
||||||
set -a paths (status list-files $prefix | grep -Fx -e"$prefix/"$argv$suffix)
|
set -a paths (status list-files "$prefix/"$argv$suffix)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
string join \n $paths
|
string join \n $paths
|
||||||
|
|||||||
@@ -39,7 +39,11 @@ function funced --description 'Edit function definition'
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not type -q -f "$editor[1]"
|
if not type -q -f "$editor[1]"
|
||||||
echo (_ "funced: The value for \$EDITOR '$editor' could not be used because the command '$editor[1]' could not be found") >&2
|
if set -q VISUAL
|
||||||
|
echo (_ "funced: The value for \$VISUAL '$editor' could not be used because the command '$editor[1]' could not be found") >&2
|
||||||
|
else
|
||||||
|
echo (_ "funced: The value for \$EDITOR '$editor' could not be used because the command '$editor[1]' could not be found") >&2
|
||||||
|
end
|
||||||
set editor fish
|
set editor fish
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user