summaryrefslogtreecommitdiff
path: root/plugins/zeus/zeus.plugin.zsh
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2012-10-09 06:38:36 -0700
committerRobby Russell <robby@planetargon.com>2012-10-09 06:38:36 -0700
commit3d438617e7c909e5b18d7edbb74200d435cf1800 (patch)
tree91c7131fa115416c9dac31da30af2f6231d9908c /plugins/zeus/zeus.plugin.zsh
parent8a8b821aaccac58c61c135322554902203150fc2 (diff)
parenta0bcbfb111cc28c7e3e8320f001d28297614698e (diff)
downloadzsh-3d438617e7c909e5b18d7edbb74200d435cf1800.tar.gz
zsh-3d438617e7c909e5b18d7edbb74200d435cf1800.tar.bz2
zsh-3d438617e7c909e5b18d7edbb74200d435cf1800.zip
Merge pull request #1333 from b4mboo/master
Add zeus plugin
Diffstat (limited to 'plugins/zeus/zeus.plugin.zsh')
-rw-r--r--plugins/zeus/zeus.plugin.zsh58
1 files changed, 58 insertions, 0 deletions
diff --git a/plugins/zeus/zeus.plugin.zsh b/plugins/zeus/zeus.plugin.zsh
new file mode 100644
index 000000000..2fc7e1ebf
--- /dev/null
+++ b/plugins/zeus/zeus.plugin.zsh
@@ -0,0 +1,58 @@
+# Some aliases for zeus. (See: https://github.com/burke/zeus)
+# Zeus preloads your Rails environment and forks that process whenever
+# needed. This effectively speeds up Rails' boot process to under 1 sec.
+
+# Always use bundler.
+# Rails depends on bundler, so we can be pretty sure, that there are no
+# problems with this command. For all the other aliases I provided an
+# alternative, in case people have conflicts with other plugins (e.g. suse).
+alias zeus='bundle exec zeus'
+
+# Init
+alias zi='zeus init'
+alias zinit='zeus init'
+
+# Start
+alias zs='zeus start'
+alias ztart='zeus start'
+
+# Console
+alias zc='zeus console'
+alias zonsole='zeus console'
+
+# Server
+alias zsr='zeus server'
+alias zerver='zeus server'
+
+# Rake
+alias zr='zeus rake'
+alias zake='zeus rake'
+
+# Generate
+alias zg='zeus generate'
+alias zenerate='zeus generate'
+
+# Runner
+alias zrn='zeus runner'
+alias zunner='zeus runner'
+
+# Cucumber
+alias zcu='zeus cucumber'
+alias zucumber='zeus cucumber'
+
+# Test
+alias zt='zeus test'
+alias zest='zeus test'
+
+alias zu='zeus test test/unit/*'
+alias zunits='zeus test test/unit/*'
+
+alias zf='zeus test test/functional/*'
+alias zunctional='zeus test test/functional/*'
+
+alias za='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
+alias zall='zeus test test/unit/*; zeus test test/functional/; zeus cucumber'
+
+# Clean up crashed zeus instances.
+alias zsw='rm .zeus.sock'
+alias zweep='rm .zeus.sock'