Включил раскраску

This commit is contained in:
Дмитрий Рамазанов 2019-08-30 09:13:09 +00:00
parent d031a79117
commit 8af73b6e5b

16
.zshrc
View File

@ -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'