Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rodolfobandeira/4095fc75d7b78176fe8c669cc2ddc50b to your computer and use it in GitHub Desktop.
Save rodolfobandeira/4095fc75d7b78176fe8c669cc2ddc50b 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