zsh-users
 help / color / mirror / code / Atom feed
From: "Timothy J. Luoma" <luomat@peak.org>
To: zsh-users@sunsite.dk
Subject: zsh prompt not updating until first 'chdir'
Date: Sat, 01 May 2004 11:53:24 -0300	[thread overview]
Message-ID: <opr7bvrajhb19zj4@localhost> (raw)


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



             reply	other threads:[~2004-05-01 15:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-01 14:53 Timothy J. Luoma [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=opr7bvrajhb19zj4@localhost \
    --to=luomat@peak.org \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).