Refactor/reorg various files and references

This commit is contained in:
david
2025-02-01 12:41:03 -06:00
parent bbf55f64fb
commit defcd11e06
10 changed files with 11 additions and 29 deletions

View File

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