Closed budimanjojo closed 1 month ago
I will release the current state as v1
and v2
for this breaking change. So you can pin to v1
you prefer the old behavior.
If you're updating, here are what you need to do to make it work just like the current default:
config.fish
, add set fish_tmux_autostart true
anywhere you want as long as tmux
command is available in $PATH
.$__fish_config_dir/fish_variables
using set -Ux fish_tmux_xxx
before.Here are the overview of the changes for v2:
Basically, v2 works exactly like the zsh
plugin except for the different variable names ($ZSH_TMUX_XXX
become $fish_tmux_xxx
).
I was using
zellij
instead oftmux
for some time now and now I want to switch back totmux
so naturally I need this plugin again. And I found some problem with this plugin (it was a long time ago and maybe my knowledge has improved now I hope):fish
to get the behavior or$fish_tmux_autostart
set totrue
. Becausefish
will always load everything inside$__fish_config_dir/conf.d
directory before loadingconfig.fish
. This means this plugin will run beforefish
evaluate the user config file. So to change the default behavior of this plugin you'll need to set universal variable, then restart the plugin for it to take effect. This is also why problem such as #4 happened. User should be able to control when to starttmux
in theirconfig.fish
. I'm thinking about removing$fish_tmux_autostart
and let user control it instead just like howzellij
does. This is a breaking change.$fish_tmux_config
should defaults to$HOME/.tmux.conf
and$XDG_CONFIG_HOME/tmux/tmux.conf
if not set instead of just default to$HOME/.tmux.conf
. This minimizes the need to set the variable.$TERM
variable totmux
ortmux-256color
too instead of justscreen
andscreen-256color
.