Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. # Set up the prompt
  2.  
  3. autoload -Uz promptinit
  4. promptinit
  5. prompt adam1
  6.  
  7. setopt histignorealldups sharehistory
  8.  
  9. # Use emacs keybindings even if our EDITOR is set to vi
  10. bindkey -e
  11.  
  12. # Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
  13. HISTSIZE=1000
  14. SAVEHIST=1000
  15. HISTFILE=~/.zsh_history
  16.  
  17. # Use modern completion system
  18. autoload -Uz compinit
  19. compinit
  20.  
  21. zstyle ':completion:*' auto-description 'specify: %d'
  22. zstyle ':completion:*' completer _expand _complete _correct _approximate
  23. zstyle ':completion:*' format 'Completing %d'
  24. zstyle ':completion:*' group-name ''
  25. zstyle ':completion:*' menu select=2
  26. eval "$(dircolors -b)"
  27. zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
  28. zstyle ':completion:*' list-colors ''
  29. zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
  30. zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
  31. zstyle ':completion:*' menu select=long
  32. zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
  33. zstyle ':completion:*' use-compctl false
  34. zstyle ':completion:*' verbose true
  35.  
  36. zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
  37. zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
  38.  
  39.  
  40. h() { if [ -z "$*" ]; then history 1; else history 1 | egrep "$@"; fi; }
  41. autoload -Uz up-line-or-beginning-search
  42. autoload -Uz down-line-or-beginning-search
  43. zle -N up-line-or-beginning-search
  44. zle -N down-line-or-beginning-search
  45. bindkey '\eOA' up-line-or-beginning-search
  46. bindkey '\e[A' up-line-or-beginning-search
  47. bindkey '\eOB' down-line-or-beginning-search
  48. bindkey '\e[B' down-line-or-beginning-search
  49.  
  50. bindkey '\e[7~' beginning-of-line
  51. bindkey '\e[8~' end-of-line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement