diff options
author | eug-vs <eugene@eug-vs.xyz> | 2021-09-21 10:50:19 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2021-09-21 10:50:19 +0300 |
commit | 19498a2dd5aa8edb95c216482b63ed947a903bcc (patch) | |
tree | 97a25e58574f1877624e7d0adee37cbe249237d3 /tmux/.local/bin/tmuxinator-menu.sh | |
parent | 58d06a10ed7b753839160568c5430f319097cee2 (diff) | |
download | dotfiles-19498a2dd5aa8edb95c216482b63ed947a903bcc.tar.gz |
refactor: rename tmuxinator-menu -> tmux-menu
Diffstat (limited to 'tmux/.local/bin/tmuxinator-menu.sh')
-rwxr-xr-x | tmux/.local/bin/tmuxinator-menu.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tmux/.local/bin/tmuxinator-menu.sh b/tmux/.local/bin/tmuxinator-menu.sh deleted file mode 100755 index dd6c8d9..0000000 --- a/tmux/.local/bin/tmuxinator-menu.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -PROJECTS_DIRS="$HOME/Documents/Projects $HOME/Documents/Projects/hp" -TMUXINATOR_PROJECTS_DIR="$HOME/.config/tmuxinator" - -SELECTED=$({ for dir in $PROJECTS_DIRS; do ls $dir; done; ls $TMUXINATOR_PROJECTS_DIR; } | dmenu -l 10) - -if [ $(echo $SELECTED | grep '.yml') ]; then - # Tmuxinator project was selected, start it - tmuxinator start "${SELECTED%.*}" -else - # Project directory was selected, find its full path (in any of the dirs) - for dir in $PROJECTS_DIRS; do - FULL_PATH=$(find $dir -maxdepth 1 -type d -name $SELECTED) - if [ -n "$FULL_PATH" ]; then - # Start project based on the template - tmuxinator start --no-attach -p=$HOME/.config/tmuxinator/.template.yml name=$SELECTED root=$FULL_PATH 2>/dev/null & - break - fi - done; -fi |