* Changing _gdb completion:

- $filenames to $default (Closes: #463969)
  - also show directory names (i.e. compgen -d) in COMPREPLY.
This commit is contained in:
David Paleino 2008-06-25 17:58:54 +02:00
parent 9bef189e1c
commit 91f67553a2
2 changed files with 6 additions and 3 deletions

View File

@ -4045,7 +4045,7 @@ _gdb()
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -c -- $cur ) )
COMPREPLY=( $( compgen -d -c -- $cur ) )
elif [ $COMP_CWORD -eq 2 ]; then
prev=${prev##*/}
COMPREPLY=( $( compgen -fW "$( command ps axo comm,pid | \
@ -4053,7 +4053,7 @@ _gdb()
-- "$cur" ) )
fi
} &&
complete -F _gdb $filenames gdb
complete -F _gdb $default gdb
# Postgresql completion
#

5
debian/changelog vendored
View File

@ -3,8 +3,11 @@ bash-completion (20080624) UNRELEASED; urgency=low
* Added more completions to imagemagick (thanks to Nelson A. de
Oliveira) (Closes: #487786)
* Added xrandr completion (thanks to Anton Khirnov) (Closes: #487825)
* Changing _gdb completion:
- $filenames to $default (Closes: #463969)
- also show directory names (i.e. compgen -d) in COMPREPLY.
-- David Paleino <d.paleino@gmail.com> Tue, 24 Jun 2008 21:44:15 +0200
-- David Paleino <d.paleino@gmail.com> Wed, 25 Jun 2008 17:58:17 +0200
bash-completion (20080617.5) unstable; urgency=medium