zshrc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Set up the prompt
  2. alias ls="ls -G"
  3. autoload -Uz promptinit
  4. promptinit
  5. prompt adam1
  6. setopt histignorealldups sharehistory
  7. # Use emacs keybindings even if our EDITOR is set to vi
  8. bindkey -e
  9. # Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
  10. HISTSIZE=1000
  11. SAVEHIST=1000
  12. HISTFILE=~/.zsh_history
  13. # Use modern completion system
  14. autoload -Uz compinit
  15. compinit
  16. zstyle ':completion:*' auto-description 'specify: %d'
  17. zstyle ':completion:*' completer _expand _complete _correct _approximate
  18. zstyle ':completion:*' format 'Completing %d'
  19. zstyle ':completion:*' group-name ''
  20. zstyle ':completion:*' menu select=2
  21. eval "$(dircolors -b)"
  22. zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
  23. zstyle ':completion:*' list-colors ''
  24. zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
  25. zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
  26. zstyle ':completion:*' menu select=long
  27. zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
  28. zstyle ':completion:*' use-compctl false
  29. zstyle ':completion:*' verbose true
  30. zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
  31. zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'