Created
March 4, 2015 11:07
-
-
Save weapp/88cbc7319afc796c0c7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/projects/ | |
echo -en '\033]2;'$1'\007' # set the title of the window | |
case "$1" in | |
wubytes) cd wubytes && foreman start;; | |
kiwitime) cd kiwitime && rails s -p 5000;; | |
#services | |
mailcatcher) mailcatcher -fv;; | |
nginx) nginx -g "daemon off;";; | |
redis) redis-server;; | |
mysql) mysql.server start;; | |
riak) cd riak-box && vagrant up ;; | |
elastic) elasticsearch ;; | |
rabbit) rabbitmq-server ;; | |
neo) neo4j console;; | |
mongo) makdir -p mongo-data && mongod --dbpath mongo-data ;; | |
# shortcuts | |
n) up nginx;; | |
k) up kiwitime;; | |
r) up redis;; | |
m) up mysql;; | |
*) echo "command '$1' not found" | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment