Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
3.1.5-pws-15 prompt change
- X-seq: zsh-workers 6055
- From: Timothy J Luoma <luomat@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: 3.1.5-pws-15 prompt change
- Date: Sun, 18 Apr 1999 19:56:21 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
# 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