Created
November 7, 2013 17:17
-
-
Save defHLT/7358277 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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