Modification to previous profile.d script changes
This commit is contained in:
parent
3f003aa67c
commit
b539f87ad6
5
less.csh
5
less.csh
@ -1,8 +1,9 @@
|
||||
#!/bin/csh
|
||||
# less initialization script (csh)
|
||||
if ( -x /usr/bin/lesspipe.sh ) then
|
||||
if ( $?LESSOPEN && { eval 'test ! -z $LESSOPEN' } ) then
|
||||
setenv LESSOPEN "$LESSOPEN | /usr/bin/lesspipe.sh %s"
|
||||
:
|
||||
else
|
||||
setenv LESSOPEN "/usr/bin/lesspipe.sh %s"
|
||||
setenv LESSOPEN "|/usr/bin/lesspipe.sh %s"
|
||||
endif
|
||||
endif
|
||||
|
9
less.sh
9
less.sh
@ -1,9 +1,4 @@
|
||||
#!/bin/sh
|
||||
# less initialization script (sh)
|
||||
if [ -x /usr/bin/lesspipe.sh ]; then
|
||||
if [ -z "$LESSOPEN" ]; then
|
||||
export LESSOPEN="/usr/bin/lesspipe.sh %s"
|
||||
else
|
||||
export LESSOPEN="$LESSOPEN | /usr/bin/lesspipe.sh %s"
|
||||
fi
|
||||
if [ -x /usr/bin/lesspipe.sh ] && [ -z $LESSOPEN ]; then
|
||||
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
|
||||
fi
|
||||
|
10
less.zsh
10
less.zsh
@ -1,11 +1,5 @@
|
||||
#!/bin/zsh
|
||||
# less initialization script (sh)
|
||||
if [[ -x /usr/bin/lesspipe.sh ]] ; then
|
||||
if [[ -z "$LESSOPEN" ]] ; then
|
||||
export LESSOPEN="/usr/bin/lesspipe.sh %s"
|
||||
else
|
||||
export LESSOPEN="$LESSOPEN | /usr/bin/lesspipe.sh %s"
|
||||
if [[ -x /usr/bin/lesspipe.sh && -z "$LESSOPEN" ]] ; then
|
||||
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo $LESSOPEN
|
||||
|
Loading…
Reference in New Issue
Block a user