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
I was using zellij instead of tmux for some time now and now I want to switch back to tmux 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):
It's a bad de# fish to get the behavior or $fish_tmux_autostart set to true. Because fish will always load everything inside $__fish_config_dir/conf.d directory before loading config.fish. This means this plugin will run before fish 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 Tmux not found on startup #4 happened. User should be able to control when to start tmux in their config.fish. I'm thinking about removing $fish_tmux_autostart and let user control it instead just like how zellij does. This is a breaking change.
There are some new features in the upstream that I haven't include here, one of them is having $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.
Another new feature from upstream is automatically set $TERM variable to tmux or tmux-256color too instead of just screen and screen-256color.
The text was updated successfully, but these errors were encountered:
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 Tmux not found on startup #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
.The text was updated successfully, but these errors were encountered: