Skip to content

Instantly share code, notes, and snippets.

@defHLT
Created November 7, 2013 17:17
Show Gist options
  • Save defHLT/7358277 to your computer and use it in GitHub Desktop.
Save defHLT/7358277 to your computer and use it in GitHub Desktop.
#!/bin/zsh
SESSIONNAME="def"
tmux has-session -t $SESSIONNAME &> /dev/null
if [ $? != 0 ]
then
tmux new-session -s $SESSIONNAME -d
tmux send-keys -t $SESSIONNAME "weechat-curses" C-m C-l
tmux new-window -t $SESSIONNAME
tmux send-keys -t $SESSIONNAME "cd ~/dev" C-m C-l
fi
tmux attach -t $SESSIONNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment