mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
d4034fc253
darcs-hash:20060111141735-ac50b-b6a9ac5d5d9eb8eac28dd39968cd28f99044e8f5.gz
21 lines
944 B
Fish
21 lines
944 B
Fish
|
|
function __fish_complete_apropos
|
|
if test (commandline -ct)
|
|
set str (commandline -ct)
|
|
apropos $str|sed -e "s/^\(.*$str\([^ ]*\).*\)$/$str\2\t\1/"
|
|
end
|
|
end
|
|
|
|
complete -xc apropos -a '(__fish_complete_apropos)' -d (_ "whatis entry")
|
|
|
|
complete -c apropos -s h -l help -d (_ "Display help and exit")
|
|
complete -f -c apropos -s d -l debug -d (_ "Print debugging info")
|
|
complete -f -c apropos -s v -l verbose -d (_ "Verbose mode")
|
|
complete -f -c apropos -s r -l regex -d (_ "Keyword as regex")
|
|
complete -f -c apropos -s w -l wildcard -d (_ "Keyword as wildwards")
|
|
complete -f -c apropos -s e -l exact -d (_ "Keyword as exactly match")
|
|
complete -x -c apropos -s m -l system -d (_ "Search for other system")
|
|
complete -x -c apropos -s M -l manpath -a '(echo $MANPATH)' -d (_ "Specify man path")
|
|
complete -x -c apropos -s C -l config-file -d (_ "Specify a configuration file")
|
|
complete -f -c apropos -s V -l version -d (_ "Display version and exit")
|
|
|