diff options
author | Mario Fernandez <mario.fernandez@hceris.com> | 2011-09-10 11:35:08 +0200 |
---|---|---|
committer | Mario Fernandez <mario.fernandez@hceris.com> | 2011-09-10 11:35:08 +0200 |
commit | 965e1cfefa41bd0419126d9321eecec4fcbbb0e3 (patch) | |
tree | 47d4b1e017fbe082616524072a9522f63cb42a14 /plugins | |
parent | 762b55bb2bc0452ce3f5f2f21bc22b61936ef704 (diff) | |
download | zsh-965e1cfefa41bd0419126d9321eecec4fcbbb0e3.tar.gz zsh-965e1cfefa41bd0419126d9321eecec4fcbbb0e3.tar.bz2 zsh-965e1cfefa41bd0419126d9321eecec4fcbbb0e3.zip |
fix completion for commands wrapped with bundler
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/bundler/bundler.plugin.zsh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh index a6c116407..bd77b0781 100644 --- a/plugins/bundler/bundler.plugin.zsh +++ b/plugins/bundler/bundler.plugin.zsh @@ -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 |