Simplify tmux-session-hydrate logic; update tmux key binds

This commit is contained in:
2025-09-25 13:34:42 -05:00
parent 9a5595245c
commit 5f07adee2d
7 changed files with 23 additions and 49 deletions

View File

@@ -0,0 +1,18 @@
tmux_omitted_dirs=(
$HOME
$DIR_HOME_BOX
$DIR_DEV
$DIR_GIT_PROJECTS
)
[[ ! ${tmux_omitted_dirs[(re)$(pwd)]} ]] && {
tmux new-window -d -n $EDITOR
tmux send-keys -t :$EDITOR "$EDITOR ." c-M
tmux new-window -d -n debug
tmux new-window -d -n run
tmux rename-window cmd
tmux send-keys -t :cmd "clear; [[ -d .git ]] && git status" c-M
}
clear