summaryrefslogtreecommitdiff
path: root/completions/sbopkg
diff options
context:
space:
mode:
Diffstat (limited to 'completions/sbopkg')
-rw-r--r--completions/sbopkg8
1 files changed, 5 insertions, 3 deletions
diff --git a/completions/sbopkg b/completions/sbopkg
index f6589103..e5742af6 100644
--- a/completions/sbopkg
+++ b/completions/sbopkg
@@ -40,6 +40,7 @@ _sbopkg()
for (( i=${#words[@]}-1; i>0; i-- )); do
if [[ "${words[i]}" == -f ]]; then
config="${words[i+1]}"
+ __expand_tilde_by_ref config
break
fi
done
@@ -60,9 +61,10 @@ _sbopkg()
done
[[ -r $REPO_ROOT/$REPO_NAME/$REPO_BRANCH/SLACKBUILDS.TXT ]] || return
- COMPREPLY=( $( sed -ne "/^SLACKBUILD NAME: $cur/{s/^SLACKBUILD NAME: //;p}"\
+ COMPREPLY=( $( command sed -ne "/^SLACKBUILD NAME: $cur/{s/^SLACKBUILD NAME: //;p}"\
$REPO_ROOT/$REPO_NAME/$REPO_BRANCH/SLACKBUILDS.TXT )
$( cd $QUEUEDIR; compgen -f -X "!*.sqf" -- "$cur" ) )
-} && complete -F _sbopkg sbopkg
+} &&
+complete -F _sbopkg sbopkg
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh