diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-12 21:04:49 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-12 21:04:49 +0300 |
commit | a4ea67f5cbd16015f80e3542519f2ca978c114c4 (patch) | |
tree | b7708dfc7121e86ddd33c2e41f6c6f4c925cf584 /.vifm/scripts | |
parent | c728f0e1fc34167a01daa7990afa5d49805023a2 (diff) | |
download | dotfiles-a4ea67f5cbd16015f80e3542519f2ca978c114c4.tar.gz |
feat(vifm): bootstrap tmuxinator project from vifm
Diffstat (limited to '.vifm/scripts')
-rwxr-xr-x | .vifm/scripts/bootstrap.sh | 18 |
1 files changed, 18 insertions, 0 deletions
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 + |