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

3.1.5-pws-15 prompt change



# Here's my PROMPT definition:

ONCON=`who | fgrep ' console ' | awk '{print $1}'`

if [ "$ONCON" = "$USERNAME" ]; then

	REMOTE_HOST=""
	LOCAL_HOST=""
else
	REMOTE_HOST="(from $RHOST)"
	LOCAL_HOST="@%m"

fi

PROMPT='
------------------------------ %t/%T ------------------------------
%S[OLDPWD: $OLDPWD]
   [PWD: %~]%s
%B%n$LOCAL_HOST%b $REMOTE_HOST
'

# end prompt



w/ 3.1.4 it looks like this:

------------------------------  7:54PM/19:54 ------------------------------
[OLDPWD: /]
   [PWD: ~]
tjl
*

[where * shows where the cursor is]



w/ 3.1.5 is looks like this:

------------------------------  7:54PM/19:54 ------------------------------
[OLDPWD: /]
   [PWD: ~]
tjl

*

Now, why is there a blank line there after my username?

TjL



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