summaryrefslogtreecommitdiff
path: root/completions/man
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-24 19:35:42 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-04-24 19:35:42 +0300
commit1b85a1bf582fe000c812b2dc025971b1fa1f78c7 (patch)
treee65fb78ccad34b4900a81a4774735b900e222fd0 /completions/man
parentf8d8444667e2a341c85b383396179c69db66d46b (diff)
downloadbash-completion-1b85a1bf582fe000c812b2dc025971b1fa1f78c7.tar.gz
Treat arguments starting with . or ~ as paths where that check is done.
Diffstat (limited to 'completions/man')
-rw-r--r--completions/man4
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/man b/completions/man
index c29cf093..04601058 100644
--- a/completions/man
+++ b/completions/man
@@ -19,8 +19,8 @@ _man()
_expand || return 0
- # file based completion if parameter contains /
- if [[ "$cur" == */* ]]; then
+ # file based completion if parameter looks like a path
+ if [[ "$cur" == @(*/|[.~])* ]]; then
_filedir $manext
return 0
fi