Skip to content

Instantly share code, notes, and snippets.

@hellp
Created July 28, 2014 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellp/86211bd2f9afc27bf9a9 to your computer and use it in GitHub Desktop.
Save hellp/86211bd2f9afc27bf9a9 to your computer and use it in GitHub Desktop.
gnome-terminal-shell
#!/bin/bash
set -e
TMUX="/usr/bin/tmux"
SESSIONNAME="gnometerminal"
if $TMUX has-session -t $SESSIONNAME
then
$TMUX new-session -t $SESSIONNAME \; new-window
else
$TMUX new-session -s $SESSIONNAME
fi
# $TMUX new-window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment