zsh-users
 help / color / mirror / code / Atom feed
* zsh prompt not updating until first 'chdir'
@ 2004-05-01 14:53 Timothy J. Luoma
  2004-05-01 16:14 ` Maurice
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Timothy J. Luoma @ 2004-05-01 14:53 UTC (permalink / raw)
  To: zsh-users


Hello folks
	Just back on the list after a long absence (exiled to Windows for a few  
years, just bought a Mac).

	I'm very rusty on my ZSH skills, and hope someone can help.  I have a  
$PROMPT setup in .zshenv

setprompt () { PROMPT="

---------------------------------%t/%T ---------------------------------
%S[OLDPWD: $OLDPWD]
      [PWD: %~]%s
$SHORT_HOST> "
}

chpwd () { setprompt }

this works fine AFTER my first chdir, but when I first login, it leaves me  
with the default prompt.

Can someone remind me what I have to do to get this to update as soon as I  
login?

Thanks!

TjL

ps - running ZSH 4.04, 4.06 and 4.1.1, fwiw



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-05-03  6:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-01 14:53 zsh prompt not updating until first 'chdir' Timothy J. Luoma
2004-05-01 16:14 ` Maurice
2004-05-01 17:52 ` Bart Schaefer
2004-05-03  1:30   ` Timothy J. Luoma
2004-05-01 23:32 ` Dan Nelson
2004-05-03  0:41   ` Timothy Luoma
2004-05-03  6:55     ` Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).