Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Deutsch common-nighthawk

View GitHub Profile
@common-nighthawk
common-nighthawk / tmux-script.sh
Last active Mar 18, 2017
tmux script to launch Figure project
View tmux-script.sh
#!/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