Skip to content

Commit

Permalink
feat(_comp_compgen_commands): include dirs
Browse files Browse the repository at this point in the history
It makes sense to offer completions from explicitly specified paths,
too.

Thanks-to: Koichi Murase <myoga.murase@gmail.com>
  • Loading branch information
scop committed Jun 1, 2023
1 parent 4d4839e commit b9c7b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -2708,7 +2708,7 @@ _complete_as_root()
_comp_compgen_commands()
{
[[ ! ${cur-} ]] && shopt -q no_empty_cmd_completion && return
_comp_compgen -- -c
_comp_compgen -- -c -o plusdirs
# for e.g. spaces in paths to and in command names
((${#COMPREPLY[@]} == 0)) || compopt -o filenames
}
Expand Down

0 comments on commit b9c7b5d

Please sign in to comment.