Set PS1 correctly for ksh.

This commit is contained in:
ad 2009-02-14 09:53:07 +00:00
parent 46b57afcf7
commit 1fafc79578
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
ll(){ ls -l ${1+"$@"}; }
case "$-" in *i*)
if /bin/test -z "${HOST}"; then
HOST=`hostname`
fi
PS1="${HOST%%.*}$PS1"
set -o emacs
# This file is used by shells that might not support