From 92f04daed707d4d614044b25e80327ab98d4c071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 1 Sep 2016 19:04:00 +0200 Subject: small changes in shell --- zshrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 1e8b346..276e26f 100644 --- a/zshrc +++ b/zshrc @@ -1,5 +1,13 @@ +zstyle ':completion:*' completer _expand _complete _ignored _approximate +zstyle ':completion:*' insert-unambiguous true +zstyle ':completion:*' max-errors 3 +zstyle ':completion:*' use-cache on +zstyle ':completion:*' cache-path ~/.cache/zsh +zstyle :compinstall filename '/home/kkoci/.zshrc' +zstyle -e ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)(?)*==32=33}:${(s.:.)LS_COLORS}")' +zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} + autoload -Uz compinit && compinit -autoload -Uz promptinit && promptinit autoload -Uz colors && colors HISTFILE=~/.histfile @@ -29,7 +37,7 @@ annoyme_check() { } if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi PROMPT="%(?..%{$fg_bold[yellow]%}EXIT: %? -)\$(annoyme_check)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} " +)\$(annoyme_check)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} " if [ -e ~/.local/git-prompt.sh ]; then source ~/.local/git-prompt.sh -- cgit v1.2.3