-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
tmux inherits environment variables causing __VFOX_CURTMPPATH to be reused #375
Comments
Use the following tmux configuration to see if there is any problem with my verification. cat ~/.tmux.conf
set-option -g default-command "env -u __VFOX_CURTMPPATH -u __VFOX_PID -u __VFOX_SHELL fish" |
this config/option did the trick @jan-bar |
@ZuBB I'm glad to solve this problem. The reason for the problem is that tmux will inherit environment variables when creating a new terminal, and the __VFOX_XXX environment variables have special uses. |
So is there a fix for this issue on your side, or I have to tweak config of tmux? |
I don’t have a good solution, and many people are troubled by this feature of tmux, which can be avoided by modifying the tmux configuration, so I don’t think it’s necessary to fix it. |
Then maybe adding a note to the docs would be nice? |
Yes, you can submit a PR. I haven't submitted a PR related to documentation yet. 😄 |
I encountered a similar problem when using fish + tmux + vfox: when I reconnect to an existing tmux, my vfox environment is often lost(dotnet, node). |
@AliveNeko You can use this solution #375 (comment) ,The principle is to remove those environment variables through the subprocess started by tmux. |
My bad, I didn't see the above configuration. |
Originally posted by @ZuBB in #364 (comment)
The text was updated successfully, but these errors were encountered: