-
Notifications
You must be signed in to change notification settings - Fork 18
Problems with multi user setup and sorin prompt #35
Comments
Thanks for reporting the issue. What is the value of $TMPDIR? Perhaps the test in 436a7f9 should check ownership (-O) instead of, or in addition to, existence. |
Sorry, now I am confused. The test was removed with 3392332. So TMPDIR is empty, and
for every user and this makes trouble: |
Huh, you're right. Looks like that was changed in #6. That change makes sense to me though. Is ❯ mktemp -d
/var/folders/m2/3rwkhb908xnfvd0059_t24yh0000gq/T/tmp.KpNG9sPv
❯ mktemp -d
/var/folders/m2/3rwkhb908xnfvd0059_t24yh0000gq/T/tmp.OTagTfUI
❯ mktemp -d
/var/folders/m2/3rwkhb908xnfvd0059_t24yh0000gq/T/tmp.McdBhifs
❯ mktemp -d
/var/folders/m2/3rwkhb908xnfvd0059_t24yh0000gq/T/tmp.mt3fyYFJ
❯ mktemp -d
/var/folders/m2/3rwkhb908xnfvd0059_t24yh0000gq/T/tmp.eZ1kEsgJ This is from a CentOS system: $ mktemp -d
/tmp/tmp.GUOYd17245
$ mktemp -d
/tmp/tmp.RrArI17248
$ mktemp -d
/tmp/tmp.THmwU17249
$ mktemp -d
/tmp/tmp.RJLRU17268 |
On Ubuntu I get:
So this seems okay, but I still get
|
Hmmm. Seems like it should be working then. This is the operative line in the prompt. Here's what I'm seeing:
|
I think I found the problem, but I don't understand it. If I change the login shell to zsh everything is working as expected. But if I have a different shell and then call
the problem appears. |
Ah! This is from the zsh manpage:
In other words, if your login shell is bash and then you invoke zsh, your |
Ah I see. One more thing to understand it better. If I have a bash as login shell and then I call
So the prompt plugin does not use the new $TMPPREFIX, does it? So there is no chance of getting it work without zsh as login shell? Thank you so much. |
Unfortunately it's too late then.
I think the right fix is to change Prezto, and move that logic from Can you check one thing? Is your current shell exporting
TMPPREFIX is a zsh thing AFAICT, so I would guess your result will be the same as mine. I would prefer not to clobber that variable if it's already set. Though if bash or your system is setting it to some useless / incorrect value it would be the right thing to do. |
@paulmelnikow I get the same empty answer:
And your workaround with
works as well. Thank you. |
There is code in runcoms/zshenv that seems intended to load zprofile at other times. However it only runs when The SHLVL test was added in sorin-ionescu#500, prior to which these settings were in |
Picking this up at sorin-ionescu#1199. |
I am using a multi user setup on Ubuntu 16.04 and have the problems mentioned in sorin-ionescu#1199 even after this commit. Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: