KarlFAKremen

[LINUX][TOOLS] .zshrc file (with install command)

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