X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=6146f47ec4e89f42ee00006fc71ed5bf24f9609e;hb=c5def1541078b09dc0a8749b0ffa032f44007ffd;hp=dbadf3cbf0cef55472218c07751f5dee5b9b5a86;hpb=c1f2dec91f1d93d184832a008ad5e4a93f6eb022;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index dbadf3c..6146f47 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -35,9 +35,9 @@ # set default browser if [ -z "$BROWSER" ] ; then if [ -n "$DISPLAY" ] ; then - [ -x =firefox ] && export BROWSER=firefox + [ -x $(which firefox) ] && export BROWSER=firefox else - [ -x =w3m ] && export BROWSER=w3m + [ -x $(which w3m) ] && export BROWSER=w3m fi fi (( ${+PAGER} )) || export PAGER="less" @@ -776,7 +776,7 @@ } # highlight important stuff in diff output, usage example: hg diff | hidiff - [ -x =histring ] && \ + [ -x $(which histring) ] && \ alias hidiff="histring -fE '^Comparing files .*|^diff .*' | histring -c yellow -fE '^\-.*' | histring -c green -fE '^\+.*'" # rename pictures based on information found in exif headers