Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Last active May 14, 2018 17:08
Show Gist options
  • Save vpnwall-services/19a703ec5525c0d72f4efa6307623069 to your computer and use it in GitHub Desktop.
Save vpnwall-services/19a703ec5525c0d72f4efa6307623069 to your computer and use it in GitHub Desktop.
[Create Splitted Tmux] Create splitted tmux session for several applications #linux #shell #tmux #create
#!/bin/bash
tmux new-session -s 'tmuxed-1' -n 'app1' -d
tmux split-window -t 0 -v
tmux resize-pane -t 1 -U -y 10
tmux send -t 0 'ping -c 4 localhost' ENTER
tmux send -t 1 'hostname' ENTER
tmux at -t 'tmuxed-1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment