Skip to content

Instantly share code, notes, and snippets.

@spikensbror
Last active August 29, 2015 14:01
Show Gist options
  • Save spikensbror/135876be10d80fc7c458 to your computer and use it in GitHub Desktop.
Save spikensbror/135876be10d80fc7c458 to your computer and use it in GitHub Desktop.
TMux/VIM shell-based development environment with IRC provided by WeeChat.
#!/bin/sh
if [ -z "$1" ]; then
SESSIONNAME="devsh"
else
SESSIONNAME="devsh-$1"
fi
tmux -2 new-session -n dev -d -s $SESSIONNAME
tmux rename-window dev
tmux split-window -v
tmux select-pane -t 0
tmux split-window -h
tmux send-keys vim C-m
tmux new-window -n srv
tmux new-window -n irc
tmux send-keys weechat-curses C-m
tmux select-window -t 0
tmux select-pane -t 0
tmux send-keys vim C-m
tmux select-pane -D
tmux -2 attach-session -t $SESSIONNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment