diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-10-12 15:20:04 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-10-12 15:20:04 +0200 |
| commit | 54fe02166f9c0a1eafd7c29bf597c0aaea8c048d (patch) | |
| tree | 19e435a4d9aa2395903e493509e1dc27eb19b38c /bin/extra/tmux-sessionizer | |
| parent | da5908fe194a2036dcd1b1d9af70159acca63063 (diff) | |
checkpoint
Diffstat (limited to 'bin/extra/tmux-sessionizer')
| -rwxr-xr-x | bin/extra/tmux-sessionizer | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/extra/tmux-sessionizer b/bin/extra/tmux-sessionizer index d203f63..34958e5 100755 --- a/bin/extra/tmux-sessionizer +++ b/bin/extra/tmux-sessionizer @@ -4,7 +4,10 @@ if [ $# -eq 1 ]; then selected="$1" else pfx="$HOME/proj" - selected="$(find $pfx -mindepth 1 -maxdepth 1 -type d | sed "s@$pfx/@@" | fzf)" + + selected="$(find "$pfx" $pfx/handmade \ + -mindepth 1 -maxdepth 1 \( -path "$pfx/handmade/*" -o -path "$pfx/*" \) -a -type d -a \( -not -path "$pfx/handmade" \) | + sed "s@$pfx/@@" | fzf)" { [ "$selected" ] && [ -d "$pfx/$selected" ]; } || exit 1 fi |
