Skip to content

Instantly share code, notes, and snippets.

@chamun
Last active August 29, 2015 14:26
Show Gist options
  • Save chamun/7a07f31a9d68ddf8e146 to your computer and use it in GitHub Desktop.
Save chamun/7a07f31a9d68ddf8e146 to your computer and use it in GitHub Desktop.
tmux setup with a status panel running `grunt watch`
#!/bin/bash
SESSION=session-name
# Create a new tmux session named $SESSION with a window named code
tmux new-session -d -n code -s $SESSION
# Create a 5 lines tall panel in $SESSION and run `grunt watch`
tmux split-window -d -l 5 -t $SESSION:code 'grunt watch'
# Attach $SESSION to the terminal
tmux attach-session -t $SESSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment