From a4ea67f5cbd16015f80e3542519f2ca978c114c4 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 12 Mar 2021 21:04:49 +0300 Subject: feat(vifm): bootstrap tmuxinator project from vifm --- .vifm/scripts/bootstrap.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .vifm/scripts/bootstrap.sh (limited to '.vifm/scripts/bootstrap.sh') diff --git a/.vifm/scripts/bootstrap.sh b/.vifm/scripts/bootstrap.sh new file mode 100755 index 0000000..422809c --- /dev/null +++ b/.vifm/scripts/bootstrap.sh @@ -0,0 +1,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 + -- cgit v1.2.3