mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
man
completions: complete fish commands (#3762)
* man completions: complete fish commands `apropos` does not output fish commands so they were not completed. * Improve __fish_complete_man
This commit is contained in:
parent
b7d60dc7bb
commit
ec19159580
@ -64,6 +64,10 @@ function __fish_complete_man
|
|||||||
print name, sect
|
print name, sect
|
||||||
}
|
}
|
||||||
'
|
'
|
||||||
|
|
||||||
|
# Fish commands are not given by apropos
|
||||||
|
set -l files $__fish_datadir/man/man1/*.1
|
||||||
|
string replace -r '.*/([^/]+)\.1$' '$1\tFish command' -- $files
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user