Adjust tmux-sessionizer key-binds and filenames

This commit is contained in:
david
2025-04-04 16:55:39 -05:00
parent 6fb6caa4cc
commit 8e93ac0fac
3 changed files with 7 additions and 5 deletions

View File

@@ -5,8 +5,9 @@ switch_to() {
}
hydrate() {
local tmux_hydrate_path="$HOME/.local/bin/.tmux-session-hydrate"
local tmux_hydrate_path="$HOME/.local/bin/.tmux-session-hydrate-default"
[[ -f $2/.tmux-session-hydrate ]] && tmux_hydrate_path="$2/.tmux-session-hydrate"
# TODO: add special case: [[ "$1" = "hub" ]] && tmux_hydrate_path="$HOME/.local/bin/.tmux-session-hydrate-hub"
[[ -f $tmux_hydrate_path ]] && tmux send-keys -t $1 "source $tmux_hydrate_path" c-M
}