Created
February 19, 2015 13:12
-
-
Save nevalsar/cce5953841c662a9d999 to your computer and use it in GitHub Desktop.
Output of `tmux debug auv-core`
This file contains 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 | |
# 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