From 1a752da1c2f58bd96e1e09a83f53556060674f3f Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 14 Jan 2020 20:46:46 +0000 Subject: [PATCH] Highlight redirections by default, and add that to the examples in README. Fixes #646. --- README.md | 5 +++++ highlighters/main/main-highlighter.zsh | 2 +- images/after4-smaller.png | Bin 0 -> 3224 bytes images/before4-smaller.png | Bin 0 -> 2987 bytes 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 images/after4-smaller.png create mode 100644 images/before4-smaller.png diff --git a/README.md b/README.md index 08af2b6..4951dba 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,11 @@ Before: [![Screenshot #3.1](images/before3-smaller.png)](images/before3.png)
After:  [![Screenshot #3.2](images/after3-smaller.png)](images/after3.png) +Before: [![Screenshot #4.1](images/before4-smaller.png)](images/before4-smaller.png) +
+After:  [![Screenshot #4.2](images/after4-smaller.png)](images/after4-smaller.png) + + How to install -------------- diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index 590be77..d01c129 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -56,7 +56,7 @@ : ${ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]:=fg=cyan} : ${ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]:=fg=cyan} : ${ZSH_HIGHLIGHT_STYLES[assign]:=none} -: ${ZSH_HIGHLIGHT_STYLES[redirection]:=none} +: ${ZSH_HIGHLIGHT_STYLES[redirection]:=fg=yellow} : ${ZSH_HIGHLIGHT_STYLES[comment]:=fg=black,bold} : ${ZSH_HIGHLIGHT_STYLES[named-fd]:=none} : ${ZSH_HIGHLIGHT_STYLES[arg0]:=fg=green} diff --git a/images/after4-smaller.png b/images/after4-smaller.png new file mode 100644 index 0000000000000000000000000000000000000000..fc946cf038822083111f753f7bdb814ba8a22304 GIT binary patch literal 3224 zcmV;J3}^F+P)mIs-@(M5Rka5H*4g5RE28Q4=*jjRX}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h-(F5BTHB)4cc_@#(2oLw@=-H)Y#UCcS<8&u47ckb=aGc1!@EbjSSrY(`1p z!}zGU(} zquenf!d5pjX){6Rm#e9zOab6%Xsa*)u++5GSoHQSU??f`SY6)0DT*TUc!-i#A8p<% zlikUeMmMUD=eA>~UO~ia=hnXaReb<}a5Rki8EbGl3$`=+uD}%N8SATdXw@0Yx_ym> z{I)dz%#VhhgJ{nEHD_Lot;-L&O@E&4p94DGcqUFG2B@|_O)ra+t|o}(7IAMH%s)@@ ze*?*j%qtNWQ=Ywz{~~#tL8sgEoLezDe|K=b=tVDj(TiRvivIx)y5Gev0C-*i0000< KMNUMnLSTZgCmW#v literal 0 HcmV?d00001 diff --git a/images/before4-smaller.png b/images/before4-smaller.png new file mode 100644 index 0000000000000000000000000000000000000000..2dbd0588b767e802d3ff640de6319e5fdca4de24 GIT binary patch literal 2987 zcmV;c3sm%pP)=B#=M?2_%p}0tr3> z`s+etTJt=1e4|VHyGz6=TxqhknF{%{&pTQ?@!}xGS#F+A6F$=}@x$o)3MtumC*_wE z{dw7W3;_VK9WNxFnJ+(j^MYjIQ&Qz;H408c(i4{*3rS4ROp6cLX{A0I0+5UkWL5=# zJBsE0HF-yiCvF^q?yl6*^K(D_dNA@*M$K0k072(pKbgln=-P(q?sqpONty53Z~QnQ zp^^J{S2-L=euj%>Pt3lRj&A2)&kv0BoJ0Zun%$Am!!Cw$*hnHWZMV1*uAGkf#N~>c zceHp4jq|BjgUAzLQ*sNQMR^^K zRkO9yCIEE)dFvr_ef0D6t2^iGNQqaz_NuM(Uih5P=mG#BDvh74r%Wcv=}fn?|JqoE z`e7VdS#Po~i-ghG26GpGWBrvHO$7e9ItiA*l8%MDsFp2~Z8Rfiuu8lUwf`o^P@=G~0d{J>~^!4z^#Z}R(RFDAv z{B^*|D=tq=%l%$M;s%ZWF3CEDmWMjYBDPz6YgziuOa6)FwJCQZBmA$V)Rg$nrQ+vB z$_st7%Cn;U&RvOnnj9UMU;e8lS?qf8braA&zWN|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