diff options
author | Karel Kočí <cynerd@email.cz> | 2016-09-01 19:04:00 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-09-01 19:04:00 +0200 |
commit | 92f04daed707d4d614044b25e80327ab98d4c071 (patch) | |
tree | f72b4f1695e6feb37cfd60f238fb7830ef8d83bc /zshrc | |
parent | 8ba079ecd4e2a41edd87542ba10683a14aac59be (diff) | |
download | myconfigs-92f04daed707d4d614044b25e80327ab98d4c071.tar.gz myconfigs-92f04daed707d4d614044b25e80327ab98d4c071.tar.bz2 myconfigs-92f04daed707d4d614044b25e80327ab98d4c071.zip |
small changes in shell
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |