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
codekirei / tmux-hybrid-attach.sh
Created Jun 27, 2014
A simple shell script that determines if a specific named tmux session exists then attaches to it or creates it.
View tmux-hybrid-attach.sh
#!/bin/zsh
grepTest=$(tmux list-sessions | grep $1)
if [ ! $grepTest ]; then
tmux new -s $1
else
tmux attach -t $1
fi
You can’t perform that action at this time.