From 91f67553a23585508983b6ff06d9b18a24ec7edd Mon Sep 17 00:00:00 2001 From: David Paleino Date: Wed, 25 Jun 2008 17:58:54 +0200 Subject: [PATCH] * Changing _gdb completion: - $filenames to $default (Closes: #463969) - also show directory names (i.e. compgen -d) in COMPREPLY. --- bash_completion | 4 ++-- debian/changelog | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bash_completion b/bash_completion index 9ebe4cde..df72657b 100644 --- a/bash_completion +++ b/bash_completion @@ -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 # diff --git a/debian/changelog b/debian/changelog index 8ebee08e..72a8b8bb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 24 Jun 2008 21:44:15 +0200 + -- David Paleino Wed, 25 Jun 2008 17:58:17 +0200 bash-completion (20080617.5) unstable; urgency=medium