blob: 422809c40a70695c5f5ee503337a1c8324756774 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
# Create tmuxinator project if it doesn't exist and run it
ROOT=$1
NAME=$(basename $1)
CONFIG_DIR=~/.config/tmuxinator
CONFIG=$CONFIG_DIR/$NAME.yml
if [ -f $CONFIG ]; then
echo 'Project already exists'
else
echo name: $NAME >> $CONFIG
echo root: $ROOT >> $CONFIG
cat $CONFIG_DIR/.template.yml >> $CONFIG
fi
tmuxinator start $NAME
|