ich versuche die lesspipe/lessfile-Fähigkeiten für less in Gang zu setzten. In "/usr/share/doc/less/LESSOPEN" steht, dass
Code: Alles auswählen
You just need to put the following in your
.zlogin/.login/.bash_profile/whatever:
eval $(lesspipe)
or
eval $(lessfile)
Leider geht "eval $(/usr/bin/lesspipe)" in der "/etc/profile" nicht. Meine /etc/profile sieht so aus:
Code: Alles auswählen
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
#jensN
eval $(/usr/bin/lesspipe)
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
umask 022