Skip to content

Instantly share code, notes, and snippets.

@weapp
Created March 4, 2015 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weapp/88cbc7319afc796c0c7d to your computer and use it in GitHub Desktop.
Save weapp/88cbc7319afc796c0c7d to your computer and use it in GitHub Desktop.
#!/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