mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Merge pull request #594 from sirech/fix-bundle-compl
Fix completion for bundled commands using the bundler plugin
This commit is contained in:
commit
dfc7319491
1 changed files with 6 additions and 1 deletions
|
@ -37,5 +37,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
|
||||
|
|
Loading…
Reference in a new issue