aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-13 13:25:53 +0300
committereug-vs <eug-vs@keemail.me>2021-03-13 13:25:53 +0300
commit8e524c8952f95ecf1354326983d7411a660032fb (patch)
treef13c213e8ea9f457bd3758c50cada3711b42715f
parenta4ea67f5cbd16015f80e3542519f2ca978c114c4 (diff)
downloaddotfiles-8e524c8952f95ecf1354326983d7411a660032fb.tar.gz
feat(vifm): use tmuxinator ERB feature
-rw-r--r--.config/tmuxinator/.template.yml3
-rwxr-xr-x.vifm/scripts/bootstrap.sh18
-rw-r--r--.vifm/vifmrc2
3 files changed, 4 insertions, 19 deletions
diff --git a/.config/tmuxinator/.template.yml b/.config/tmuxinator/.template.yml
index 6bc617b..5d3e4b0 100644
--- a/.config/tmuxinator/.template.yml
+++ b/.config/tmuxinator/.template.yml
@@ -1,3 +1,6 @@
+name: <%= @settings["name"] %>
+root: <%= @settings["root"] %>
+
windows:
- editor:
layout: main-vertical
diff --git a/.vifm/scripts/bootstrap.sh b/.vifm/scripts/bootstrap.sh
deleted file mode 100755
index 422809c..0000000
--- a/.vifm/scripts/bootstrap.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/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
-
diff --git a/.vifm/vifmrc b/.vifm/vifmrc
index 4aeb9bd..b205476 100644
--- a/.vifm/vifmrc
+++ b/.vifm/vifmrc
@@ -141,7 +141,7 @@ command! make !!make %a
command! mkcd :mkdir %a | cd %a
command! vgrep vim "+grep %a"
command! reload :write | restart
-command! w :!bootstrap.sh %d/%c
+command! w :!tmuxinator start -p=$HOME/.config/tmuxinator/.template.yml name=%c root=%d/%c
" ------------------------------------------------------------------------------