From 3752c05f11561a151e5d40906b32f3f67ccb2e9c Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Tue, 12 Aug 2014 14:38:00 +0600 Subject: [PATCH] =?UTF-8?q?bash:=20clr:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D1=86=D0=B2=D0=B5=D1=82=20magenta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/shell/bash/aliases | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/shell/bash/aliases b/etc/shell/bash/aliases index 00c0abd..33c6ef1 100755 --- a/etc/shell/bash/aliases +++ b/etc/shell/bash/aliases @@ -398,11 +398,13 @@ clr() { -bg) sed -r -e "s/$2/`echo -e "\033"`[7;32m&`echo -e "\033"`[1;0m/g";; -br) sed -r -e "s/$2/`echo -e "\033"`[7;31m&`echo -e "\033"`[1;0m/g";; -by) sed -r -e "s/$2/`echo -e "\033"`[7;33m&`echo -e "\033"`[1;0m/g";; + -bm) sed -r -e "s/$2/`echo -e "\033"`[7;35m&`echo -e "\033"`[1;0m/g";; -fb) sed -r -e "s/$2/`echo -e "\033"`[1;34m&`echo -e "\033"`[1;0m/g";; -fc) sed -r -e "s/$2/`echo -e "\033"`[1;36m&`echo -e "\033"`[1;0m/g";; -fg) sed -r -e "s/$2/`echo -e "\033"`[1;32m&`echo -e "\033"`[1;0m/g";; -fr) sed -r -e "s/$2/`echo -e "\033"`[1;31m&`echo -e "\033"`[1;0m/g";; -fy) sed -r -e "s/$2/`echo -e "\033"`[1;33m&`echo -e "\033"`[1;0m/g";; + -fm) sed -r -e "s/$2/`echo -e "\033"`[0;35m&`echo -e "\033"`[1;0m/g";; * ) sed -e "s/$1/`echo -e "\033"`[7;31m&`echo -e "\033"`[1;0m/g";; esac } @@ -411,7 +413,7 @@ clr() { t() { sdcv --data-dir $SHELLRC/etc/soft/sdcv/dictionaries/ "$*" \ | clr -bg --.* \ - | clr -fg '\[.*\]' \ + | clr -fm '\[.*\]' \ | clr -fy '=|~|[[:space:]]+[0-9a-zA-Zа-яА-Я]{1,2}\)|^[0-9]\.|^I+[[:space:]]' \ | clr -fc "'" }