Guest User

zshrc

a guest
Sep 3rd, 2011
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.66 KB | None | 0 0
  1. ### some options ###
  2. setopt autocd
  3. setopt autolist
  4. setopt correctall
  5. setopt nobeep
  6. setopt notify
  7.  
  8. ### completions ###
  9. autoload -U compinit
  10. compinit
  11. zstyle ':completion::complete:*' use-cache 1
  12.  
  13. # case-insensitive (uppercase from lowercase) completion
  14. zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
  15.  
  16. # process completion
  17. zstyle ':completion:*:processes' command 'ps -au$USER'
  18. zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31"
  19.  
  20. # completions too
  21. zstyle ':completion:*' completer _expand _complete _ignored
  22. zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
  23. zstyle ':completion:*' menu select=2
  24. zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
  25. zstyle ':completion:*:descriptions' format '%U%F{yellow}%d%f%u'
  26.  
  27. ### prompt ###
  28. autoload -U promptinit
  29. promptinit
  30. prompt gentoo
  31.  
  32. autoload -U colors
  33. colors
  34.  
  35. ### history stuff ###
  36. export HISTSIZE=2000
  37. export HISTFILE="$HOME/.zsh_history"
  38. export SAVEHIST=$HISTSIZE
  39. setopt hist_ignore_all_dups
  40. setopt hist_ignore_space
  41.  
  42. ### aliases ###
  43. alias l='ls -la'
  44. alias ls='ls --color=auto'
  45. alias grep='grep --color=auto'
  46.  
  47. ### key bindings ###
  48. bindkey '\e[A'  history-search-backward
  49. bindkey '\e[B'  history-search-forward
  50. bindkey '\e[H'  beginning-of-line       # Home (xorg)
  51. bindkey '\e[1~' beginning-of-line       # Home (console)
  52. bindkey '\e[4~' end-of-line             # End (console)
  53. bindkey '\e[F'  end-of-line             # End (xorg)
  54. bindkey '\e[2~' overwrite-mode          # Ins
  55. bindkey '\e[3~' delete-char             # Delete
  56. bindkey '\eOH'  beginning-of-line
  57. bindkey '\eOF'  end-of-line
  58.  
  59. ### dir colors ###
  60. eval $(dircolors)
Advertisement
Add Comment
Please, Sign In to add comment