X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=81a8e5264032a333c8a8e8c071e9310976639fb1;hb=51be7c1e0d46531504f53c5a5e2d98c9c0dcd46a;hp=070f831e3c782cdc01bcbbc0c0d661424f53f497;hpb=86b1cfde8fc6366532e11b671477d195a744dd27;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 070f831..81a8e52 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Mai 31 17:19:00 CEST 2007 [mika] +# Latest change: Mit Aug 08 21:22:03 CEST 2007 [mika] ################################################################################ # source ~/.zshrc.global {{{ @@ -213,8 +213,10 @@ alias insecssh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"' alias insecscp='scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"' -# use colors when browsing man pages (if not using pinfo or PAGER=most) - [ -d ~/.terminfo/ ] && alias man='TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man' +# use colors when browsing man pages, but only if not using LESS_TERMCAP_* from /etc/zsh/zshenv: + if [ -z "$LESS_TERMCAP_md" ] ; then + [ -d ~/.terminfo/ ] && alias man='TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man' + fi # check whether Debian's package management (dpkg) is running if type salias &>/dev/null ; then @@ -222,18 +224,18 @@ salias check_dpkg_running="dpkg_running" fi -# work around non utf8 capable software in utf environment - if type isutfenv &>/dev/null ; then +# work around non utf8 capable software in utf environment via $LANG and luit + if type isutfenv &>/dev/null && type luit &>/dev/null; then if [ -x $(which mrxvt) ] ; then - isutfenv && [ -n "$LANG" ] && alias mrxvt="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} mrxvt" + isutfenv && [ -n "$LANG" ] && alias mrxvt="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} luit mrxvt" fi if [ -x $(which aterm) ] ; then - isutfenv && [ -n "$LANG" ] && alias aterm="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} aterm" + isutfenv && [ -n "$LANG" ] && alias aterm="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} luit aterm" fi if [ -x $(which centericq) ] ; then - isutfenv && [ -n "$LANG" ] && alias centericq="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} centericq" + isutfenv && [ -n "$LANG" ] && alias centericq="LANG=${LANG/(#b)(*)[.@]*/$match[1].iso885915} luit centericq" fi fi # }}} @@ -1088,7 +1090,7 @@ cat $FILE else DATE=$(grep 'UTC' $FILE | sed 's#.* /##') - TEMPERATURE=$(awk '/Temperature/ { print $4"° Celcius / " $2"° Fahrenheit" }' $FILE| tr -d '(') + TEMPERATURE=$(awk '/Temperature/ { print $4" degree Celcius / " $2" degree Fahrenheit" }' $FILE| tr -d '(') echo "date: $DATE" echo "temp: $TEMPERATURE" fi