"debian-software" did not exist on "23f6a4ac3a5f8bcd191b5d59dc92680ea34225c5"
Commit 965e1cfe authored by Mario Fernandez's avatar Mario Fernandez
Browse files

fix completion for commands wrapped with bundler

parent 762b55bb
......@@ -33,5 +33,10 @@ _run-with-bundler() {
## Main program
for cmd in $bundled_commands; do
alias $cmd="_run-with-bundler $cmd"
eval "function bundled_$cmd () { _run-with-bundler $cmd \$@}"
alias $cmd=bundled_$cmd
if which _$cmd > /dev/null 2>&1; then
compdef _$cmd bundled_$cmd
fi
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment