Skip to content

Instantly share code, notes, and snippets.

@8bitDesigner
Created April 2, 2012 17:05
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 8bitDesigner/2285163 to your computer and use it in GitHub Desktop.
Save 8bitDesigner/2285163 to your computer and use it in GitHub Desktop.
Make productive
productive:
tmux new-window -n refreshements 'cd adventurer; guard'; \
tmux split-window -t :2 'cd adventurer; supervisor server.js'; \
tmux select-window -t :1; \
tmux send-keys 'vi server.js' C-m;
@8bitDesigner
Copy link
Author

Usage: make productive

This will use tmux to open a window (named 'refreshments'), split it horizontally, open Guard and Supervisor, to reload node and the browser upon changes, then select the first window and load vim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment