Skip to content

Instantly share code, notes, and snippets.

@FernandoBasso
Created July 31, 2016 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save FernandoBasso/c13339373c1fc2c1026cf8bea3a1197b to your computer and use it in GitHub Desktop.
Save FernandoBasso/c13339373c1fc2c1026cf8bea3a1197b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#tmux new-session -d -s rails 'title rails-development; stty -ixon; vim'
cd ~/develop/projs/html5-audio-player-typescript
title oswp
tmux new-session -d -s oswp
# For some reason, send-keys does nothing here, not even an error is displayed.
tmux rename-window 'VIM'
tmux new-window -t oswp:1 -n 'php -S localhost:8080' \; send-keys $'php -S localhost:8080\n'
tmux new-window -t oswp:2 -n 'tsc' \; send-keys $'tsc --watch\n'
tmux new-window -t oswp:3 -n 'sass' \; send-keys $'sass --watch styles/scss:styles/css\n'
tmux new-window -t oswp:4 -n 'shell'
tmux select-window -t oswp:0
tmux send-keys $'vim demo.html\n'
tmux -2 attach-session -t oswp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment