Oh interesting. I ran the same on my install of ZSH and ZDOTDIR is unset,
so my zshrc is at $HOME/.zshrc. Because your ZDOTDIR is at what appears to
be $HOME/.config/zsh it'll be looking for zshrc in $HOME/.config/zsh/.zshrc.

You can probably trivially resolve this with ln -s $HOME/.config/zsh/.zshrc
$HOME/.zshrc, assuming oh-my-zsh installed a new zshrc to ~ as it normally
does. It may be worth reporting a bug to oh-my-zsh to have them respect
ZDOTDIR if they don't already/if you can reproduce the bug using a new user.

On Wed, Dec 9, 2020 at 1:07 PM Scott Vargovich <bluesfrea...@gmail.com>
wrote:

> echo ZDT:$ZDOTDIR HOME:/home/scott
> ZDT:/home/scott/.config/zsh HOME:/home/scott
>
> ps
>    PID  TTY                   TIME  CMD
> 27745 pts/0          00:00:00  zsh
> 27673 pts/0          00:00:00  ps
>
> exec zsh -i
> [scott@hostname]$   --Not my chosen prompt.
>
>
> On Wed, Dec 9, 2020 at 3:33 PM Daniel Eggleston <egg...@gmail.com> wrote:
>
>> What's the behavior of these, from the "bad" prompt?
>>
>> $ echo ZDT:$ZDOTDIR HOME:$HOME
>> $ ps
>> $ exec zsh -i
>>
>> ZDOTDIR controls where it loads zshrc from. If that's empty, it'll fall
>> back to $HOME. If both are empty, that might cause weirdness.
>>
>> From the [user@host] prompt, if you 'exec zsh -i' and get your prompt,
>> it says the shell was either not zsh, or it was not invoked as an
>> interactive shell (ps will tell you which case that is).
>>
>> On Wednesday, December 9, 2020 at 12:23:53 PM UTC-6
>> bluesfrea...@gmail.com wrote:
>>
>>> I am running Artix (http://artixlinux.org) and have zsh and
>>> oh-my-zsh-git as my shell.  The prompt I'm specifying doesn't come up when
>>> I open termite.  Instead there is a '[user@host]' prompt that appears.
>>> When I 'source .zshrc', vim opens.  When I exit vim, then the prompt I
>>> specified in .zshrc comes up.  Best case scenario I would like to have the
>>> specified prompt open when I open my shell.  Failing that, figuring out why
>>> the source command opens vim and fixing it would suffice.  Any ideas???
>>> --
>>> <><  Scott Vargovich  <><
>>> ------------------------------------------
>>> OpenPGP Key ID: 29C36884
>>> ==========================
>>> Ham Radio Call Sign: KE8CQC
>>> ==========================
>>> GMRS Call Sign:  WQXJ287
>>> ------------------------------------------
>>>
>> --
>> --
>> You received this message because you are subscribed to the Linux Users
>> Group.
>> To post a message, send email to linuxusersgroup@googlegroups.com
>> To unsubscribe, send email to
>> linuxusersgroup+unsubscr...@googlegroups.com
>> For more options, visit our group at
>> http://groups.google.com/group/linuxusersgroup
>> References can be found at: http://goo.gl/anqri
>> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Linux Users Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to linuxusersgroup+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/linuxusersgroup/089edcab-ed72-4fdf-8b10-590c8a5b6393n%40googlegroups.com
>> <https://groups.google.com/d/msgid/linuxusersgroup/089edcab-ed72-4fdf-8b10-590c8a5b6393n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> <><  Scott Vargovich  <><
> ------------------------------------------
> OpenPGP Key ID: 29C36884
> ==========================
> Ham Radio Call Sign: KE8CQC
> ==========================
> GMRS Call Sign:  WQXJ287
> ------------------------------------------
>
> --
> --
> You received this message because you are subscribed to the Linux Users
> Group.
> To post a message, send email to linuxusersgroup@googlegroups.com
> To unsubscribe, send email to linuxusersgroup+unsubscr...@googlegroups.com
> For more options, visit our group at
> http://groups.google.com/group/linuxusersgroup
> References can be found at: http://goo.gl/anqri
> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
> ---
> You received this message because you are subscribed to the Google Groups
> "Linux Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linuxusersgroup+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/linuxusersgroup/CAE8T3AKHromERSpdA_W73i6T3s89r8VFZB6e6N-3qmhXKtcG%2Bw%40mail.gmail.com
> <https://groups.google.com/d/msgid/linuxusersgroup/CAE8T3AKHromERSpdA_W73i6T3s89r8VFZB6e6N-3qmhXKtcG%2Bw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxusersgroup@googlegroups.com
To unsubscribe, send email to linuxusersgroup+unsubscr...@googlegroups.com
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
--- 
You received this message because you are subscribed to the Google Groups 
"Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linuxusersgroup+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/linuxusersgroup/CA%2BeT_OAqN%3DnQN9_FJvu2X4_BVByG0Edp%3DVwSi%2B2o%3D28-JxGb9w%40mail.gmail.com.

Reply via email to