Commit dfc73194 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #594 from sirech/fix-bundle-compl

Fix completion for bundled commands using the bundler plugin
parents cceb387e 965e1cfe
...@@ -37,5 +37,10 @@ _run-with-bundler() { ...@@ -37,5 +37,10 @@ _run-with-bundler() {
## Main program ## Main program
for cmd in $bundled_commands; do 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 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