diff options
| author | NanoTech <nanotech008@gmail.com> | 2010-10-19 15:39:27 -0600 |
|---|---|---|
| committer | NanoTech <nanotech008@gmail.com> | 2010-10-19 15:39:27 -0600 |
| commit | 68f893cbe05e5a84adf7f26a0ed7492af6e03def (patch) | |
| tree | 81b436518d3552f47a02f44963e84700627d1bec /plugins/rails.plugin.zsh | |
| parent | 02c5fd5bdd0d37bb0e1cb19ad058154f5b7d96a7 (diff) | |
| parent | dc12853b0c3e5af9e42f44cb9efdf57d44d20711 (diff) | |
| download | zsh-68f893cbe05e5a84adf7f26a0ed7492af6e03def.tar.gz zsh-68f893cbe05e5a84adf7f26a0ed7492af6e03def.tar.bz2 zsh-68f893cbe05e5a84adf7f26a0ed7492af6e03def.zip | |
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/rails.plugin.zsh')
| -rw-r--r-- | plugins/rails.plugin.zsh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/rails.plugin.zsh b/plugins/rails.plugin.zsh deleted file mode 100644 index 45bebb722..000000000 --- a/plugins/rails.plugin.zsh +++ /dev/null @@ -1,36 +0,0 @@ - -alias ss='thin --stats "/thin/stats" start' -alias sg='ruby script/generate' -alias sd='ruby script/destroy' -alias sp='ruby script/plugin' -alias ssp='ruby script/spec' -alias rdbm='rake db:migrate' -alias sc='ruby script/console' -alias sd='ruby script/server --debugger' -alias devlog='tail -f log/development.log' - -function _cap_does_task_list_need_generating () { - if [ ! -f .cap_tasks~ ]; then return 0; - else - accurate=$(stat -f%m .cap_tasks~) - changed=$(stat -f%m config/deploy.rb) - return $(expr $accurate '>=' $changed) - fi -} - -function _cap () { - if [ -f config/deploy.rb ]; then - if _cap_does_task_list_need_generating; then - echo "\nGenerating .cap_tasks~..." > /dev/stderr - cap show_tasks -q | cut -d " " -f 1 | sed -e '/^ *$/D' -e '1,2D' -> .cap_tasks~ - fi - compadd `cat .cap_tasks~` - fi -} - -compctl -K _cap cap - -function remote_console() { - /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )" -} |
