mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-30 14:24:16 +08:00
fix completion for commands wrapped with bundler
This commit is contained in:
parent
762b55bb2b
commit
965e1cfefa
|
@ -33,5 +33,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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user