Mac OS X Lion 装完zsh之后如何bundle

1 个回答

zsh兼容bash,直接把~/.bashrc 有关bundle的配置部分,添加到~/.zshrc

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM

其他 :

可以在~/.zshrc中添加bundle插件,如:

plugins=(git cap bundler gem github ruby rvm ssh-agent rails rails3 redis-cli)

快捷命令:

be='bundle exec'
bi='bundle install'
bl='bundle list'
bp='bundle package'
bu='bundle update'
guard=bundled_guard
heroku=bundled_heroku
nanoc=bundled_nanoc
rackup=bundled_rackup
rainbows=bundled_rainbows
rake=bundled_rake
rspec=bundled_rspec
ruby=bundled_ruby
shotgun=bundled_shotgun
spec=bundled_spec
spork=bundled_spork
thin=bundled_thin
unicorn=bundled_unicorn
unicorn_rails=bundled_unicorn_rails