add some scripts

This commit is contained in:
Rahsheen Porter 2022-01-17 18:45:32 -05:00
parent 0f28b0c624
commit 5af414e4aa
2 changed files with 23 additions and 0 deletions

10
.local/bin/tmux-sessionizer.bsh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
session=$(find ~/Development ~/src ~/Development/Clients -mindepth 1 -maxdepth 1 -type d | fzf)
session_name=$(basename "$session" | tr . _)
if ! tmux has-session -t "$session_name" &> /dev/null; then
tmux new-session -s "$session_name" -c "$session" -d
fi
tmux switch-client -t "$session_name"