Proper handle absolute and local path to man page.
--- a/.bashrc Fri Nov 18 01:06:42 2011 +0200
+++ b/.bashrc Fri Nov 18 01:09:39 2011 +0200
@@ -234,6 +234,9 @@
_man() {
local p
local cur=${COMP_WORDS[COMP_CWORD]}
+ if [[ $cur = /* || $cur = ./* ]]; then
+ COMPREPLY=( $(compgen -f -- $cur) )
+ fi
local IFS=':
'
for p in /usr/share/man $MANPATH; do