Rework profile/env for shells

This commit is contained in:
2025-11-14 18:05:39 -06:00
parent 52610e056a
commit f1700e1d3d
13 changed files with 72 additions and 62 deletions

View File

@@ -7,7 +7,7 @@ tmux_switch_to() {
tmux_hydrate() {
local tmux_hydrate_path="$XDG_CONFIG_HOME/tmux/.tmux-session-hydrate-default"
[[ -f $2/.tmux-session-hydrate ]] && tmux_hydrate_path="$2/.tmux-session-hydrate"
[[ -f $tmux_hydrate_path ]] && tmux send-keys -t $1 "source $tmux_hydrate_path" c-M
[[ -f $tmux_hydrate_path ]] && tmux send-keys -t $1 ". $tmux_hydrate_path" c-M
}
tmux_existing_sessions=$(tmux list-sessions 2> /dev/null || echo '')