KarlFAMainkoff

[LINUX][TOOLS] .zshrc file

Dec 4th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. # The following lines were added by compinstall
  2.  
  3. zstyle ':completion:*' completer _expand _complete _ignored _approximate
  4. zstyle ':completion:*' format '1 %d'
  5. zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]} r:|[._-/]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'l:|=* r:|=*'
  6. zstyle :compinstall filename '/home/kkremen/.zshrc'
  7.  
  8. autoload -Uz compinit
  9. compinit
  10. # End of lines added by compinstall
  11. # Lines configured by zsh-newuser-install
  12. HISTFILE=~/.histfile
  13. HISTSIZE=1000
  14. SAVEHIST=1000
  15. setopt appendhistory autocd extendedglob nomatch notify prompt_subst
  16. unsetopt beep
  17. bindkey -e
  18. # End of lines configured by zsh-newuser-install
  19.  
  20. autoload -U colors && colors
  21.  
  22. for color in red green yellow blue magenta cyan black white; do
  23. eval $color='%{$fg_no_bold[${color}]%}'
  24. done
  25.  
  26. reset="%{$reset_color%}"
  27.  
  28. branch() {
  29. if [ -d '.hg' ]; then echo ", ${green}hg $(hg sum | grep branch)${reset}"; fi
  30. }
  31.  
  32. export PROMPT='[%U${yellow}%n${reset}%U@%M%u] %~ %% '
  33. export RPROMPT='[ %T %D$(branch) ]'
Advertisement
Add Comment
Please, Sign In to add comment