Skip to content

Instantly share code, notes, and snippets.

@jpillora
Last active Nov 28, 2018
Embed
What would you like to do?
tmux helper
#tmux helper
echo '#!/bin/bash
NAME="${1}"
if [[ "$NAME" = "" ]]; then
tmux ls
else
tmux attach-session -t "$NAME" || tmux new-session -s "$NAME"
fi' > /usr/local/bin/tm &&
chmod +x /usr/local/bin/tm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment