Skip to content

Instantly share code, notes, and snippets.

View btknight's full-sized avatar

Brian Knight btknight

  • Chicago, IL
View GitHub Profile
@niderhoff
niderhoff / tmux.sh
Created April 9, 2018 13:45
create multiple tmux panes from bash script
#!/bin/bash
SESSIONNAME="niid"
STARTDIR="/home/niid/Documents/Projects"
tmux has-session -t apr &> /dev/null
if [ $? != 0 ]
then
tmux new-session -s $SESSIONNAME -c $STARTDIR/TCM -n "jptr" -d
tmux send-keys -t $SESSIONNAME:0 "source activate TCM" C-m