Skip to content

Commit b9c7b5d

Browse files
committed
feat(_comp_compgen_commands): include dirs
It makes sense to offer completions from explicitly specified paths, too. Thanks-to: Koichi Murase <[email protected]>
1 parent 4d4839e commit b9c7b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2708,7 +2708,7 @@ _complete_as_root()
27082708
_comp_compgen_commands()
27092709
{
27102710
[[ ! ${cur-} ]] && shopt -q no_empty_cmd_completion && return
2711-
_comp_compgen -- -c
2711+
_comp_compgen -- -c -o plusdirs
27122712
# for e.g. spaces in paths to and in command names
27132713
((${#COMPREPLY[@]} == 0)) || compopt -o filenames
27142714
}

0 commit comments

Comments
 (0)