Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: problem with prompt



On Dec 14,  9:08pm, Brian Harvell wrote:
} Subject: problem with prompt
}
} When using %c (or %.) in your PROMPT you get the literal text "~PWD"

This occurs when the AUTO_NAME_DIRS option is set, because PWD is no
longer a "special" paramter in 3.1.5.  A patch to special-case PWD to
change this has been posted to zsh-workers and may appear in the next
release.

Meanwhile, you can either turn off the AUTO_NAME_DIRS option, or use

	precmd() {
	    unhash -d PWD
	    # ... other commands ...
	}

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author