summaryrefslogtreecommitdiffstats
path: root/files/shell-completion
diff options
context:
space:
mode:
Diffstat (limited to 'files/shell-completion')
-rw-r--r--files/shell-completion/slackpkg.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/shell-completion/slackpkg.bash b/files/shell-completion/slackpkg.bash
index f1b5ca6..7be2bb2 100644
--- a/files/shell-completion/slackpkg.bash
+++ b/files/shell-completion/slackpkg.bash
@@ -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