diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-04-24 19:35:42 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-04-24 19:35:42 +0300 |
commit | 1b85a1bf582fe000c812b2dc025971b1fa1f78c7 (patch) | |
tree | e65fb78ccad34b4900a81a4774735b900e222fd0 /completions/man | |
parent | f8d8444667e2a341c85b383396179c69db66d46b (diff) | |
download | bash-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/man | 4 |
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 |