Skip to content

Instantly share code, notes, and snippets.

@nat-n
Last active August 29, 2015 14:16
Show Gist options
  • Save nat-n/e9ffa1e4d7f1e368e1f0 to your computer and use it in GitHub Desktop.
Save nat-n/e9ffa1e4d7f1e368e1f0 to your computer and use it in GitHub Desktop.
tmux recipes

Programatically setup up session with splitpane window with different REPLs

tmux new-session -d -s repls 'irb'
tmux send-keys 'p "Hello Ruby!"' C-m
tmux rename-window 'Repls'
tmux select-window -t 'Repls'
tmux split-window -h 'python'
tmux send-keys 'print "Hello Python!"' C-m
tmux split-window -v -t 0 'node'
tmux send-keys 'console.log("Hello node!")' C-m
tmux split-window -v -t 1 'top'
tmux attach-session -t repls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment