From 8af73b6e5b690b974e5a0d5d3810a35a8d60f324 Mon Sep 17 00:00:00 2001 From: eKa Date: Fri, 30 Aug 2019 09:13:09 +0000 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BA=D0=BB=D1=8E=D1=87=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=80=D0=B0=D1=81=D0=BA=D1=80=D0=B0=D1=81=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshrc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.zshrc b/.zshrc index 0b21941..c64b2ed 100644 --- a/.zshrc +++ b/.zshrc @@ -13,6 +13,10 @@ zstyle ':completion:*' menu select setopt COMPLETE_ALIASES zstyle ':completion::complete:*' gain-privileges 1 +# completion colors +export LS_COLORS='no=00;37:fi=00;37:di=01;36:ln=04;36:pi=33:so=01;35:do=01;35:bd=33;01:cd=33;01:or=31;01:su=37:sg=30:tw=30:ow=34:st=37:ex=01;31:' +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} + # Key bindings # create a zkbd compatible hash; # to add other keys to this hash, see: man 5 terminfo @@ -108,6 +112,18 @@ extract () { } # Aliases + +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + alias dir='dir --color=auto' + alias vdir='vdir --color=auto' + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + alias -g L='| less' alias -g G='| grep' alias -g GI='|grep -i'