Skip to content

Instantly share code, notes, and snippets.

@eheikes
Last active December 14, 2015 01:19
Show Gist options
  • Save eheikes/5005757 to your computer and use it in GitHub Desktop.
Save eheikes/5005757 to your computer and use it in GitHub Desktop.
# Start all project servers, one per screen.
# http://superuser.com/questions/91881/invoke-zsh-having-it-run-a-command-and-then-enter-interactive-mode-instead-of
screen -t Web 1 zsh -ic 'cd ~/www/goodsmiths/ && gpull; bundle exec foreman start; zsh -i'
screen -t API 2 zsh -ic 'cd ~/www/goodsmiths_recommendation_engine && gpull && bundle exec foreman start; zsh -i'
screen -t AS 3 zsh -ic 'cd ~/www/goodsmiths_activity_stream && gpull && bundle exec foreman start; zsh -i'
screen -t GE 4 zsh -ic 'cd ~/www/goodsmiths_gaminator && gpull && bundle exec foreman start; zsh -i'
# Change the hardstatus settings to give an window list at the bottom of the screen, with the time and date and with the current window highlighted.
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment