You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Wayland compositor or X11 Window manager(s) are you using?
Gnome
WezTerm version
wezterm 0-unstable-2025-01-03
Ask your question!
To have session persistance, allowing me to close and open my terminal window freely, I used to attach the following fish script into my fish.config file:
# Log into an available tmux sessionifset-q TMUX
set-q TMUX_PLUGIN_MANAGER_PATH
or tmux run "~/.tmux/plugins/tpm/tpm"# Loading tmux plugins ( not required here)elseifnot tmux list-sessions | string match -qe (hostname):
tmux new -s (hostname) # If there is no session named $hostname, create and attach to it.elseifcommand realpath ~ | string match -q"$PWD"
tmux attach -t (hostname) # Otherwise, if the terminal was opened from ~ attach to session $hostname.else
tmux attach -t (hostname) -c"$PWD"\; new-window # Otherwise attach to session $hostname and move over to current location.endexitend
I'm trying to achieve something like that using wezterm. I believe that it could be done using wezterm's lua configuration only? I'm trying to avoid such shennanigans now that I'm trying to move away from Tmux.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What Operating System(s) are you running on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
Gnome
WezTerm version
wezterm 0-unstable-2025-01-03
Ask your question!
To have session persistance, allowing me to close and open my terminal window freely, I used to attach the following fish script into my fish.config file:
I'm trying to achieve something like that using wezterm. I believe that it could be done using wezterm's lua configuration only? I'm trying to avoid such shennanigans now that I'm trying to move away from Tmux.
Beta Was this translation helpful? Give feedback.
All reactions