Skip to content

Instantly share code, notes, and snippets.

Jacob Blakely codekirei

Block or report user

Report or block codekirei

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
codekirei /
Created Jun 27, 2014
A simple shell script that determines if a specific named tmux session exists then attaches to it or creates it.
grepTest=$(tmux list-sessions | grep $1)
if [ ! $grepTest ]; then
tmux new -s $1
tmux attach -t $1
You can’t perform that action at this time.