mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-16 06:54:03 +00:00
parent
76b6959cad
commit
d2fc1c47ac
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ end
|
||||||
|
|
||||||
function __fish_describe_command -d "Command used to find descriptions for commands"
|
function __fish_describe_command -d "Command used to find descriptions for commands"
|
||||||
# $argv will be inserted directly into the awk regex, so it must be escaped
|
# $argv will be inserted directly into the awk regex, so it must be escaped
|
||||||
set -l argv_regex (string escape --style=regex "$argv")
|
set -l argv_regex (string escape --style=regex -- "$argv")
|
||||||
__fish_apropos $argv 2>/dev/null | awk -v FS=" +- +" '{
|
__fish_apropos $argv 2>/dev/null | awk -v FS=" +- +" '{
|
||||||
split($1, names, ", ");
|
split($1, names, ", ");
|
||||||
for (name in names)
|
for (name in names)
|
||||||
|
|
Loading…
Reference in a new issue