-
-
Notifications
You must be signed in to change notification settings - Fork 25.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When oh-my-zsh tmux plugin is enabled, the 'tmux' alias will cause my oh-my-tmux .tmux.conf.local to be ignored #12247
Comments
I'm not sure I can follow what's going on here. |
Hi! Is it still reproducible? |
Yes, still reproducible. Thanks!
Steve Mayer
***@***.***
…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: ***@***.***>
|
Could you check this? |
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'):
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: