mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
This makes it easier to think about the length of environment variables
This commit is contained in:
parent
56ab7d9c0d
commit
ecc8c266ab
3 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ export PAGER
|
||||||
if [ $PAGER = less ] ; then
|
if [ $PAGER = less ] ; then
|
||||||
for lesspipe in lesspipe lesspipe.sh ; do
|
for lesspipe in lesspipe lesspipe.sh ; do
|
||||||
lesspipe_test=`command -v ${lesspipe} 2>/dev/null`
|
lesspipe_test=`command -v ${lesspipe} 2>/dev/null`
|
||||||
if [ -n $lesspipe_test ] ; then
|
if [ -n "${lesspipe_test}" ] ; then
|
||||||
LESSOPEN="| ${lesspipe_test} %s" && break
|
LESSOPEN="| ${lesspipe_test} %s" && break
|
||||||
export LESSOPEN
|
export LESSOPEN
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
if [ ! $USER ] ; then
|
if [ -z "${USER}" ] ; then
|
||||||
USER=$LOGNAME
|
USER=$LOGNAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# prompt
|
# 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%}'
|
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%}'
|
RPROMPT=$'%1(j.%{\e[00;36m%}[%j].)%{\e[01;33m%}[%t]%{\e[00;00m%}'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue