aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/man.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bash_completion.d/man.bash b/bash/bash_completion.d/man.bash
index 9861e9dd..7d25fdd2 100644
--- a/bash/bash_completion.d/man.bash
+++ b/bash/bash_completion.d/man.bash
@@ -8,6 +8,12 @@ _man() {
local word
word=${COMP_WORDS[COMP_CWORD]}
+ # Don't bother if the word has slashes in it, the user is probably trying
+ # to complete an actual path
+ case $word in
+ */*) return 1 ;;
+ esac
+
# If this is the second word, and the previous word started with a number,
# we'll assume that's the section to search
local section subdir