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'm using both .oh-my-zsh and .oh-my-tmux. Without the zsh tmux plugin enabled, all works fine for tmux to parse my .tmux.conf.local from oh-my-tmux. When I have the zsh tmux plugin enabled, the configuration from .tmux.conf.local is completely ignored UNLESS I have ZSH_TMUX_AUTOSTART=true in my .zshrc. Disabling the zsh tmux plugin make everything work as expected.
I did verify that with the tmux plugin enabled if I path to the tmux binary or use any of the aliases that are defined by the tmux EXCEPT for 'tmux', then all works as expected.
Steps to reproduce
Don't the 'tmux' plugin.
Install oh-my-tmux
cp the .tmux/.tmux.conf.local file to the home directory and enable the theme
Exit the shell
Start the shell (just to get everything loaded properly)
Type 'tmux' to start tmux, you should see the theme that is configured in .tmux.conf.local
Enable the oh-my-zsh 'tmux' plugin
source / restart your shell
Type 'tmux' and you'll see that instead of getting the theme as configured in the .tmux.conf.local, you are getting the default green status bar of tmux.
type 'ts' to start with a session and all seems okay.
type 'ta' to attach to the session and all seems okay. Just the 'tmux' command that appears to be broken.
NOTE: If I have ZSH_TMUX_AUTOSTART=true in my .zshrc, then the proper theme is loaded from the .tmux.conf.local file as well.
Expected behavior
use of oh-my-tmux should be unaffected by the zsh tmux plugin
I'm not sure I can follow what's going on here. ZSH_TMUX_AUTOSTART just executes the tmux alias at startup, which shouldn't be different than executing it manually right after.
Could you make sure that you have the exact configuration that https://github.com/gpakosz/.tmux proposes?
On 9 Apr 2024, at 15:26, Carlo Sala wrote:
Hi! Is it still reproducible?
friendly ping @mayersj1 :)
--
Reply to this email directly or view it on GitHub:
#12247 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
I'm not sure I can follow what's going on here. ZSH_TMUX_AUTOSTART just executes the tmux alias at startup, which shouldn't be different than executing it manually right after.
Could you make sure that you have the exact configuration that https://github.com/gpakosz/.tmux proposes?
So, the configuration is exactly as noted in the .tmux link provided above.
With ZSH_TMUX_AUTOSTART (which I have disabled as it was causing other, unrelated issues) all seemed to load fine. That doesn't negate the fact that now, if I have the tmux plugin enabled, launching 'tmux' causes the .tmux.conf.local to be completely ignored. If I use the 'tmux' command (which is an alias at this point: _zsh_tmux_plugin_run) it skips the .tmux.conf.local.
If I directly call the tmux executable or use a function that wraps tmux, all works properly (such as 'ts'):
which ts
ts () {
if [[ -z $1 ]] || [[ ${1:0:1} == '-' ]]
then
tmux new-session "$@"
else
tmux new-session -s "$@"
fi
}
executing 'tmux' with any argument works properly of course. It's just the bare 'tmux' execution that seems to launch the tmux session without parsing the .tmux.conf.local file.
Describe the bug
I'm using both .oh-my-zsh and .oh-my-tmux. Without the zsh tmux plugin enabled, all works fine for tmux to parse my .tmux.conf.local from oh-my-tmux. When I have the zsh tmux plugin enabled, the configuration from .tmux.conf.local is completely ignored UNLESS I have ZSH_TMUX_AUTOSTART=true in my .zshrc. Disabling the zsh tmux plugin make everything work as expected.
I did verify that with the tmux plugin enabled if I path to the tmux binary or use any of the aliases that are defined by the tmux EXCEPT for 'tmux', then all works as expected.
Steps to reproduce
NOTE: If I have ZSH_TMUX_AUTOSTART=true in my .zshrc, then the proper theme is loaded from the .tmux.conf.local file as well.
Expected behavior
use of oh-my-tmux should be unaffected by the zsh tmux plugin
Screenshots and recordings
No response
OS / Linux distribution
MacOS Sonoma
Zsh version
5.9
Oh My Zsh version
master (0008534)
Terminal emulator
kitty, iTerm2
If using WSL on Windows, which version of WSL
None
Additional context
No response
The text was updated successfully, but these errors were encountered: