File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2581,8 +2581,7 @@ _comp_command_offset()
2581
2581
_comp_get_words cur
2582
2582
2583
2583
if (( COMP_CWORD == 0 )) ; then
2584
- compopt -o filenames
2585
- _comp_compgen -- -d -c
2584
+ _comp_compgen_commands
2586
2585
else
2587
2586
_comp_dequote " ${COMP_WORDS[0]} " || ret=${COMP_WORDS[0]}
2588
2587
local cmd=$ret compcmd=$ret
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ _comp_cmd_su()
19
19
return
20
20
;;
21
21
-c | --command | --session-command)
22
- compopt -o filenames
23
- _comp_compgen -- -d -c
22
+ _comp_compgen_commands
24
23
return
25
24
;;
26
25
esac
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ _comp_cmd_gdb()
20
20
if _comp_looks_like_path " $cur " ; then
21
21
# compgen -c works as expected if $cur contains any slashes.
22
22
local PATH=" $PATH :."
23
- _comp_compgen -- -d -c
23
+ _comp_compgen_commands
24
24
else
25
25
# otherwise compgen -c contains Bash's built-in commands,
26
26
# functions and aliases. Thus we need to retrieve the program
You can’t perform that action at this time.
0 commit comments