This makes it easier to think about the length of environment variables

This commit is contained in:
david 2009-01-12 03:22:26 -05:00
parent 56ab7d9c0d
commit ecc8c266ab
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ export PAGER
if [ $PAGER = less ] ; then
for lesspipe in lesspipe lesspipe.sh ; do
lesspipe_test=`command -v ${lesspipe} 2>/dev/null`
if [ -n $lesspipe_test ] ; then
if [ -n "${lesspipe_test}" ] ; then
LESSOPEN="| ${lesspipe_test} %s" && break
export LESSOPEN
fi

View file

@ -1,4 +1,4 @@
if [ ! $USER ] ; then
if [ -z "${USER}" ] ; then
USER=$LOGNAME
fi

View file

@ -1,5 +1,5 @@
# prompt
if [ -z ${SSH_TTY} ] ; then
if [ -z "${SSH_TTY}" ] ; then
PROMPT=$'%{\e[01;32m%}%n@%m %{\e[01;34m%}%~ %(?..%{\e[01;31m%})%(!.#.$) %{\e[00;00m%}'
RPROMPT=$'%1(j.%{\e[00;36m%}[%j].)%{\e[01;33m%}[%t]%{\e[00;00m%}'
else