Skip to content

Commit

Permalink
fix: fix which error output to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed May 29, 2019
1 parent 3d077cd commit 4854ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jovial.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function to {


# https://superuser.com/questions/71588/how-to-syntax-highlight-via-less
LESSPIPE=`(which src-hilite-lesspipe.sh || (dpkg -L libsource-highlight-common | grep lesspipe)) 2> /dev/null`
LESSPIPE=`((which src-hilite-lesspipe.sh > /dev/null && which src-hilite-lesspipe.sh) || (dpkg -L libsource-highlight-common | grep lesspipe)) 2> /dev/null`
if [[ -n ${LESSPIPE} && -e ${LESSPIPE} ]]; then
export LESSOPEN="| ${LESSPIPE} %s"
export LESS=' -R -X -F '
Expand Down

0 comments on commit 4854ee3

Please sign in to comment.