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

Re: showing 'talk' status in PROMPT



Bart Schaefer wrote:
>		setopt localoptions nullglob
>		local tty
>		tty=( ${~TTY:s/dev/de[v]/}(I) )

local tty
tty=( ${TTY}(|)(IN) )

You must use `(|)' because `()' would be treated as a function definition.
Nevertheless, you only get one copy of the pathname.

-zefram



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