Skip to content

Instantly share code, notes, and snippets.

@kolo
Created July 23, 2012 09:00
Show Gist options
  • Save kolo/3162728 to your computer and use it in GitHub Desktop.
Save kolo/3162728 to your computer and use it in GitHub Desktop.
tmux startup script
#! /bin/sh
SESSION_NAME=${PWD##*/} # Current directory name will be used as session name
tmux new-session -d -s $SESSION_NAME
tmux new-window -t $SESSION_NAME:1 -n 'vim' 'vim'
tmux new-window -t $SESSION_NAME:2
tmux new-window -t $SESSION_NAME:3
tmux select-window -t $SESSION_NAME:1
tmux -2 attach-session -t $SESSION_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment