Adjust tmux-sessionizer key-binds and filenames

This commit is contained in:
2025-01-28 11:38:46 -06:00
parent 0d1fb62b53
commit 00ee4c9126
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
}