mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +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
|
||||
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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if [ ! $USER ] ; then
|
||||
if [ -z "${USER}" ] ; then
|
||||
USER=$LOGNAME
|
||||
fi
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue