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
Fallback from Interactive Mode #4
Comments
I'm open to adding a workaround. Is there anything we could do to prevent the tmux auto-start? That would be a better solution.
How would you detect that? @silverwind Thoughts? |
@hughrawlinson does |
The tmux autostart happens when a certain environmental variable is set, so if there were a way to differentiate this call to zsh from an ordinary shell where tmux would be useful, I could only set that variable if interactive mode was on. It looks like |
Hi,
I'm encountering an issue where my environment isn't captured due to a zsh plugin I'm running. I run the tmux plugin for oh-my-zsh with the
ZSH_TMUX_AUTOSTART
option turned on, which means that when/bin/zsh -i
is run, it opens up tmux and causes issues for non-interactive processes opening it up expecting a prompt but getting a tmux instead. I've encountered this issue with my text editor also, but was able to configure my text editor not to use interactive mode, which works for me because I only start up tmux automatically in interactive mode.I understand that in practice, people are likely to set their environments in their
.zshrc
, so simply turning off interactive mode would not be an acceptable solution in this case. I'm wondering if you'd be open to a PR which detects whether or not the appropriate environment from running interactive mode, and if not, running non-interactive mode to see if it can gather more environment?The text was updated successfully, but these errors were encountered: