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
Sourced bash_profile is lost upon restore #94
Comments
Hmm, that's unusual. Can you please link the content of the following 2 files:
|
Any updates on this? |
Sorry about that. In the midst of moving across the world (; Here is my ~/.tmux.conf
And here is the output of my ~/.tmux/resurrect/last:
Thanks again for your patience and help, tmux-resurrect is awesome (: |
Hey, Just to check, what's the value of Also, why do you have this line |
Any updates on this? |
Sorry for the long delay. I don't keep up with my github like I should. which is what I would expect to get, and I would assume that would source my ~/.bash_profile but I don't think that is happening. |
Hi, same problem here |
I have the same problem on OSX and instead of my prompt (which is defined in When I create a new window though, I get my standard prompt and So for whatever reason, |
I was able to fix this problem by setting the following in
This is a workaround and not a fix. |
Same problem here. @tessus workaround did work. |
Problem is that restore.sh uses exec $tmux_default_command, which in turn falls back to tmux default-shell option if tmux default-command not set. Usuallly default-shell is /bin/bash. But tmux calls this as a login shell. The exec call in restore.sh does not. From the tmux 2.6 man page Solution, use cache_tmux_default_command() { I will prepare a PR. |
Could you test with the patch above applied? |
FWIW, in my case this resolved the issue. Thanks. |
…fault_shell Fix #94 start default-shell as login shell.
This issue was auto-closed via PR #281. |
BTW, the fix in #281 is broken. My tmux config does not set Since this issue needs to solve bash specific issue, can you add a fix to |
I can start working on this in 1 or 2 hours. Will only take a minute. I create a PR then... |
True, i did not verify every supported shell. But just for the record fish knows about '-l'. Not sure since then though. ~ fish -l -c "status --is-login && echo yes || echo no" See here: https://rootnroll.com/d/fish-shell |
The recent change causes |
@vnagarnaik please let me know, if #320 works for you |
Ah i see, yes even in fish 3.0.2. in scripts/restore.sh So fix might look something like case "$SHELL" in |
I patched in the change, and it does work for me. Thanks! |
@vnagarnaik glad to hear it. |
I may be doing something wrong here, and please share some wisdom if that is the case. I keep quite a number of handy alias's in my bash_profile, along with a few env variables. When I start up tmux and build my environment, I have no problems, but when I resurrect I lose my sourced bash_profile, as well as a few tmux.conf items such as colors etc. Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: