Advertisement
jcbahr

zshrc

Feb 15th, 2013
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.20 KB | None | 0 0
  1. ### LOAD STUFF ###
  2.  
  3. autoload -U compinit promptinit colors
  4. compinit
  5. promptinit
  6. colors
  7.  
  8. ### COMPLETION ###
  9.  
  10. zstyle ':completion:*' menu select
  11. zstyle ':completion:*:processes-names' command 'ps -e -o comm='
  12.  
  13. ### HISTORY ###
  14.  
  15. HISTFILE=~/.zsh/histfile
  16. HISTSIZE=131072
  17. SAVEHIST=131072
  18.  
  19.  
  20. ### OPTIONS ###
  21.  
  22. setopt append_history           # default,
  23. setopt auto_cd                  # type in a directory to cd there
  24. setopt auto_pushd               # when cd, pushd
  25. setopt correct                  # corrects commands
  26. setopt complete_aliases         # does not substitute aliases so that they appear like commands
  27. setopt complete_in_word         # completes portion of command before cursor
  28. setopt extended_glob            # adds #,~,^ to globbing
  29. setopt hist_ignore_dups         # ignore entries if dup of the previous
  30. setopt interactive_comments     # allows comments in interactive shells
  31. setopt pushd_ignore_dups        # don't push the same dir twice in a row
  32. setopt transient_rprompt        # removes right prompt after command is entered
  33.  
  34. #setopt auto_list
  35. #setopt menu_complete           # on first <tab> displays full menu and selects first
  36. #setopt bash_auto_list          # delays seeing menu/list by one <tab>
  37. #setopt auto_menu              
  38. #setopt list_ambiguous
  39.  
  40. unsetopt beep
  41. unsetopt clobber
  42.  
  43. bindkey -v
  44. bindkey '^[[Z' reverse-menu-complete
  45.  
  46. ### ALIAS ###
  47.  
  48. alias ls='ls --color'
  49. alias la='ls -a'
  50. alias cls='clear && ls'
  51.  
  52.  
  53. ### PROMPT ###
  54.  
  55. PROMPT='%(0?..%F{green}%B)[%(!.%B%U%F{green}root%f@%M%b%u.%n@%M) %1~]%#%(0?..%f%b) '
  56. RPROMPT='[%T]'
  57.  
  58.  
  59. ### COMPINSTALL ###
  60.  
  61. # The following lines were added by compinstall
  62.  
  63. zstyle ':completion:*' completer _complete _ignored _match _approximate
  64. zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
  65. zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
  66. zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*'
  67. zstyle ':completion:*' menu select=0
  68. zstyle ':completion:*' select-prompt %B%U%p%U%B
  69. zstyle :compinstall filename '/home/jackson/.zsh/.zshrc'
  70.  
  71. autoload -Uz compinit
  72. compinit
  73. # End of lines added by compinstall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement