Skip to content

Instantly share code, notes, and snippets.

@nevalsar
Created February 19, 2015 13:12
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 nevalsar/cce5953841c662a9d999 to your computer and use it in GitHub Desktop.
Save nevalsar/cce5953841c662a9d999 to your computer and use it in GitHub Desktop.
Output of `tmux debug auv-core`
#!/bin/zsh
# Clear rbenv variables before starting tmux
unset RBENV_VERSION
unset RBENV_DIR
tmux start-server\; has-session -t auv-core 2>/dev/null
if [ "$?" -eq 1 ]; then
cd /home/routeaccess
# Run pre command.
setopt clobber; source ~/projects/auv/devel/setup.zsh; stt
# Create the session and the first window.
TMUX= tmux new-session -d -s auv-core -n editor
# Create other windows.
# Window "editor"
tmux send-keys -t auv-core:1.1 '' C-m
tmux send-keys -t auv-core:1.1 vim C-m
tmux splitw -t auv-core:1
tmux select-layout -t auv-core:1 main-vertical
tmux send-keys -t auv-core:1.2 '' C-m
tmux send-keys -t auv-core:1.2 cd C-m
tmux select-layout -t auv-core:1 main-vertical
tmux select-pane -t auv-core:1.1
tmux select-window -t 1
fi
if [ -z "$TMUX" ]; then
tmux -u attach-session -t auv-core
else
tmux -u switch-client -t auv-core
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment