summaryrefslogtreecommitdiff
path: root/Completion/User/_gdb
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User/_gdb')
-rw-r--r--Completion/User/_gdb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/User/_gdb b/Completion/User/_gdb
index 0445e18e9..e1cca537f 100644
--- a/Completion/User/_gdb
+++ b/Completion/User/_gdb
@@ -4,13 +4,13 @@ local cur="$words[CURRENT]" prev w list ret=1 expl
[[ "$PREFIX" = --* ]] &&
_arguments -- '*=(CORE|SYM)FILE:core file:_files' \
- '*=EXECFILE:executable:_files \*\(-\*\)' \
- '*=TTY:terminal device:compadd /dev/tty\*' && return 0
+ '*=EXECFILE:executable:_files -g \*\(-\*\)' \
+ '*=TTY:terminal device:compadd /dev/tty\*\(N\)' && return 0
if compset -P '-(cd|directory)='; then
_files -/
elif compset -P '-tty='; then
- _wanted devices expl 'terminal device' compadd - /dev/tty*
+ _wanted devices expl 'terminal device' compadd - /dev/tty*(N)
elif compset -P '-(exec|se)='; then
_description files expl executable
_files "$expl[@]" -g '*(-*)'