Guest User

Untitled

a guest
Jun 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1.  
  2.  
  3.  
  4. # Shell options
  5. setopt autocd # automatically cd to a directory if not cmd
  6. setopt autopushd # automatically pushd directories on dirstack
  7. setopt nopushdsilent # print dirstack after each cd/pushd
  8. setopt pushdignoredups # don't push dups on stack
  9.  
  10. setopt correct # try to correct spelling...
  11. setopt no_correctall # ...only for commands, not filenames
  12. setopt no_listbeep # don't beep on ambiguous listings
  13. setopt listpacked # variable col widths (takes up less space)
  14.  
  15. export HISTFILE="$ZDOTDIR/zhistory" # save history
  16. export HISTSIZE=200000 # huge internal buffer
  17. export SAVEHIST=200000 # huge history file
  18.  
  19. setopt extendedhistory # save timestamps in history
  20. setopt no_histbeep # don't beep for erroneous history expansions
  21. setopt histignoredups # ignore consecutive dups in history
  22. setopt histfindnodups # backwards search produces diff result each time
  23. setopt histreduceblanks # compact consecutive white space chars (cool)
  24. setopt histnostore # don't store history related functions
  25. setopt incappendhistory # incrementally add items to HISTFILE
  26.  
  27.  
  28. # Load the prompt theme system
  29. autoload -U promptinit
  30. promptinit
  31.  
  32.  
  33. zstyle ':completion:*' format '%SCompleting %U%d%u%s'
  34. zstyle :completion::complete:cd:: tag-order \
  35. local-directories path-directories
  36.  
  37. # The following lines were added by compinstall
  38.  
  39. zstyle ':completion:*' auto-description 'specify %d:'
  40. zstyle ':completion:*' completer _expand _complete _files
  41. zstyle ':completion:*' expand prefix
  42. #zstyle ':completion:*' format 'Complete %d:'
  43. zstyle ':completion:*' group-name ''
  44. #zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
  45. zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
  46. zstyle ':completion:*' list-suffixes true
  47. zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'r:|[._-]=* r:|=*' 'r:|[._-]=* r:|=*' 'r:|[._-]=* r:|=*'
  48. #zstyle ':completion:*' max-errors 2
  49. zstyle ':completion:*' menu select=0
  50. zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
  51. zstyle ':completion:*' verbose true
  52. zstyle :compinstall filename "$ZDOTDIR/zshrc"
  53.  
  54. autoload -Uz compinit
  55. compinit
  56. # End of lines added by compinstall
  57.  
  58.  
  59. # 10. SSH Keychain
  60. # ================
  61. # OS X includes keychain now, cool.
  62. if which keychain >/dev/null 2>&1; then
  63. keychain ~/.ssh/id_rsa
  64. source ~/.keychain/${KEYCHAIN_HOST}-sh > /dev/null
  65. fi
  66.  
  67.  
  68. # Path to your oh-my-zsh configuration.
  69. export ZSH=$HOME/.oh-my-zsh
  70.  
  71. # Set to the name theme to load.
  72. # Look in ~/.oh-my-zsh/themes/
  73. export ZSH_THEME="braden"
  74. #export ZSH_THEME="maran"
  75.  
  76. # Comment this out to disable weekly auto-update checks
  77. # export DISABLE_AUTO_UPDATE="false"
  78. plugins=(git osx ruby)
  79.  
  80. source $ZSH/oh-my-zsh.sh
  81.  
  82. #--------------------------------------------------------
  83.  
  84. alias ls='ls -hFG'
  85. alias ll='ls -lhFG'
  86. alias l='ls -lAhFG'
  87. alias cd..="cd .."
  88. alias c="clear"
  89. alias e="exit"
  90. alias ssh="ssh -X"
  91. alias ..="cd .."
  92.  
  93. alias gits='git status -s'
Add Comment
Please, Sign In to add comment