You are not logged in.

#1 2015-04-10 20:13:33

aether
Member
Registered: 2011-12-17
Posts: 6

ZSH shows error in prompt if run as login shell

Hey there. I'm having a bit of a niggling issue with zsh. I've tried the search function to no avail.

Whenever zsh is run as a login shell, the prompt indicates that the last command returned something other than a zero. It seems to occur when using oh-my-zsh. I'm using it in combination with zgen right now, but it happened with antigen, antigen-hs as well as vanilla oh-my-zsh.  I've deleted .oh-my-zsh entirely and reinstalled. The same thing happens.

I'm using urxvt as my virtual terminal, but it happens in plain-jane TTYs too. If I disable the login shell flag, it doesn't show the error at all. It occurs with any zsh theme.

See below for my .zshrc, .Xresources and .zprofile, as well as examples of what I'm referring to in the top and bottom vts in the right column.

https://i.imgur.com/qBBPAq7.jpg

Does anybody have any ideas about where I might start digging into this?



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Offline

#2 2015-04-10 20:32:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: ZSH shows error in prompt if run as login shell

Uninstall Oh-my-zsh: it is worse than useless.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-04-10 21:17:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: ZSH shows error in prompt if run as login shell

jasonwryan wrote:

Uninstall Oh-my-zsh: it is worse than useless.

+1 for this... use [extra]/grml-zsh-config instead.

Offline

#4 2015-04-10 21:46:29

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: ZSH shows error in prompt if run as login shell

Or learn how to write your own zsh config -- I used grml, but dumped it when I realized that I didn't use 95% of their giant config.

I like zsh -- I just don't like other people's configs. :-)

Offline

Board footer

Powered by FluxBB