Skip to content
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

Open
jan-bar opened this issue Oct 30, 2024 · 7 comments
Open

Comments

@jan-bar
Copy link
Contributor

jan-bar commented Oct 30, 2024

          a bit better screen that may give you some additional hints
image

Originally posted by @ZuBB in #364 (comment)

@jan-bar
Copy link
Contributor Author

jan-bar commented Oct 30, 2024

@ZuBB

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"

@ZuBB
Copy link

ZuBB commented Nov 7, 2024

this config/option did the trick @jan-bar

image

@jan-bar
Copy link
Contributor Author

jan-bar commented Nov 8, 2024

@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.

@ZuBB
Copy link

ZuBB commented Nov 8, 2024

So is there a fix for this issue on your side, or I have to tweak config of tmux?

@jan-bar
Copy link
Contributor Author

jan-bar commented Nov 8, 2024

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.

@ZuBB
Copy link

ZuBB commented Nov 8, 2024

Then maybe adding a note to the docs would be nice?

@jan-bar
Copy link
Contributor Author

jan-bar commented Nov 8, 2024

Yes, you can submit a PR. I haven't submitted a PR related to documentation yet. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants