Add "--" option to "command cd" in bash completion file

Signed-off-by: Robby Workman <rworkman@slackware.com>
This commit is contained in:
Koichi Murase 2021-06-04 22:52:15 -05:00 committed by Robby Workman
parent 1d0b67507a
commit ae1b8712a6

View file

@ -63,7 +63,7 @@ _slackpkg()
install-template | remove-template)
if [[ -e $confdir/templates ]]; then
COMPREPLY=($(
cd "$confdir/templates"
command cd -- "$confdir/templates"
compgen -f -X "!*.template" -- "$cur"
))
COMPREPLY=(${COMPREPLY[@]%.template})
@ -75,7 +75,7 @@ _slackpkg()
COMPREPLY+=($(compgen -W 'a ap d e f k kde kdei l n t tcl x
xap xfce y' -- "$cur"))
COMPREPLY+=($(
cd /var/log/packages
command cd /var/log/packages
compgen -f -- "$cur"
))
return