_man() wasn't completing on filenames with a relative path
This commit is contained in:
parent
6f82e53362
commit
f433992548
@ -2,7 +2,7 @@
|
||||
#
|
||||
# <![CDATA[
|
||||
#
|
||||
# $Id: bash_completion,v 1.55 2002/01/15 18:20:48 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.56 2002/01/16 03:16:56 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -285,7 +285,7 @@ _man()
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
# default completion if parameter contains /
|
||||
[[ "$cur" == /* ]] && return 0
|
||||
[[ "$cur" == */* ]] && return 0
|
||||
# default to command completion if no man.config
|
||||
if [ ! -f /etc/man.config ]; then
|
||||
COMPREPLY=( $( compgen -c $cur ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user