mirror of
https://github.com/rworkman/slackpkg
synced 2025-01-29 20:34:29 +01:00
Add "--" option to "command cd" in bash completion file
Signed-off-by: Robby Workman <rworkman@slackware.com>
This commit is contained in:
parent
1d0b67507a
commit
ae1b8712a6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue