X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fzsh%2Fzshenv;h=a049c7fd0bead4f5b63e026caa8b9130ba9d89fa;hb=59deaccbbfb3079065c1f9743fea04977c4b02c0;hp=57e45f21fbcf91929d7980bd147e468c7d8d4f8d;hpb=9de146659752dda7e6413debfea77820735d1611;p=grml-etc-core.git diff --git a/etc/zsh/zshenv b/etc/zsh/zshenv index 57e45f2..a049c7f 100644 --- a/etc/zsh/zshenv +++ b/etc/zsh/zshenv @@ -55,11 +55,10 @@ if [[ -r /etc/gentoo-release ]] ; then PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/NX/bin:$PATH" fi else -# support extra software in special directory outside of squashfs environment in live-cd mode + # support extra scripts/software in special directory outside of squashfs environment in live mode if [[ -f /etc/grml_cd ]] ; then - [[ -r /cdrom/addons ]] && ADDONS=':/cdrom/addons' - [[ -r /live/image/addons ]] && ADDONS=':/live/image/addons' - [[ -r /etc/grml/my_path ]] && ADDONS=":$(cat /etc/grml/my_path)" + [[ -r /lib/live/mount/medium/scripts ]] && ADDONS=':/lib/live/mount/medium/scripts' + [[ -r /etc/grml/my_path ]] && ADDONS=":$(cat /etc/grml/my_path)" fi if (( EUID != 0 )); then @@ -79,11 +78,14 @@ esac # less (:=pager) options: # export LESS=C -if [[ -x /usr/bin/lesspipe.sh ]] ; then - export LESSOPEN="|lesspipe.sh %s" -elif [[ -x /usr/bin/lesspipe ]] ; then +typeset -a lp; lp=( ${^path}/lesspipe(N) ) +if (( $#lp > 0 )) && [[ -x $lp[1] ]] ; then export LESSOPEN="|lesspipe %s" +elif [[ -x /usr/bin/lesspipe.sh ]] ; then + export LESSOPEN="|lesspipe.sh %s" fi +unset lp + export READNULLCMD=${PAGER:-/usr/bin/pager} # allow zeroconf for distcc