Last active
August 29, 2015 14:26
-
-
Save chamun/7a07f31a9d68ddf8e146 to your computer and use it in GitHub Desktop.
tmux setup with a status panel running `grunt watch`
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 | |
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