Skip to content

Instantly share code, notes, and snippets.

View common-nighthawk's full-sized avatar

Daniel Deutsch common-nighthawk

View GitHub Profile
@common-nighthawk
common-nighthawk / tmux-script.sh
Last active March 18, 2017 19:37
tmux script to launch Figure project
#!/bin/sh
tmux has-session -t figure
if [ $? != 0 ]
then
tmux new-session -s figure -n editor -d
tmux send-keys -t figure 'cd ~/Documents/go-workspace/src/figure/' C-m
tmux send-keys -t figure 'vim' C-m
tmux split-window -h -p 40 -t figure
tmux send-keys -t figure:0.1 'cd ~/Documents/go-workspace/src/figure/' C-m