mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 03:32:02 +08:00
parent
49d75ff689
commit
f5b1063a8b
|
@ -36,6 +36,10 @@ complete -c man -s w -l path -d "Only print locations"
|
||||||
complete -c man -s W -d "Only print locations"
|
complete -c man -s W -d "Only print locations"
|
||||||
|
|
||||||
complete -c man -n 'string match -q -- "*/*" (commandline -t | string collect)' --force-files
|
complete -c man -n 'string match -q -- "*/*" (commandline -t | string collect)' --force-files
|
||||||
if echo | MANPAGER=cat command man -l - &>/dev/null
|
if command -q man
|
||||||
complete -c man -s l -l local-file -d "Local file" -r
|
# We have a conditionally-defined man function,
|
||||||
|
# so we need to check for existence here.
|
||||||
|
if echo | MANPAGER=cat command man -l - &>/dev/null
|
||||||
|
complete -c man -s l -l local-file -d "Local file" -r
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user