/.zshrc

https://github.com/Valiev/config · Zsh · 128 lines · 65 code · 21 blank · 42 comment · 1 complexity · fcc4120a5e3a723271566b4ebe34c76d MD5 · raw file

  1. # Path to your oh-my-zsh configuration.
  2. ZSH=$HOME/.oh-my-zsh
  3. # Set name of the theme to load.
  4. # Look in ~/.oh-my-zsh/themes/
  5. # Optionally, if you set this to "random", it'll load a random theme each
  6. # time that oh-my-zsh is loaded.
  7. # ZSH_THEME="robbyrussell"
  8. ZSH_THEME="kolo"
  9. # ZSH_THEME="sorin"
  10. ZSH_THEME="gozilla"
  11. ZSH_THEME="dieter"
  12. ZSH_THEME="kolo"
  13. ZSH_THEME="arrow"
  14. ZSH_THEME="wezm"
  15. # Example aliases
  16. # alias zshconfig="mate ~/.zshrc"
  17. # alias ohmyzsh="mate ~/.oh-my-zsh"
  18. alias - -='cd -'
  19. zstyle ":completion:*:commands" rehash 1
  20. # Colors
  21. eval `gdircolors dev/opensource/dircolors-solarized/dircolors.ansi-dark`
  22. # Set to this to use case-sensitive completion
  23. # CASE_SENSITIVE="true"
  24. # Comment this out to disable bi-weekly auto-update checks
  25. # DISABLE_AUTO_UPDATE="true"
  26. # Uncomment to change how often before auto-updates occur? (in days)
  27. # export UPDATE_ZSH_DAYS=13
  28. # Uncomment following line if you want to disable colors in ls
  29. # DISABLE_LS_COLORS="true"
  30. # Uncomment following line if you want to disable autosetting terminal title.
  31. # DISABLE_AUTO_TITLE="true"
  32. # Uncomment following line if you want to disable command autocorrection
  33. DISABLE_CORRECTION="true"
  34. # Uncomment following line if you want red dots to be displayed while waiting for completion
  35. COMPLETION_WAITING_DOTS="true"
  36. # Uncomment following line if you want to disable marking untracked files under
  37. # VCS as dirty. This makes repository status check for large repositories much,
  38. # much faster.
  39. DISABLE_UNTRACKED_FILES_DIRTY="true"
  40. ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
  41. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  42. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  43. # Example format: plugins=(rails git textmate ruby lighthouse)
  44. plugins=(
  45. git
  46. git-extras
  47. osx
  48. knife
  49. extract
  50. colorize
  51. themes
  52. zsh-syntax-highlighting
  53. command-not-found
  54. autojump
  55. dircycle
  56. lol
  57. brew
  58. sprunge
  59. fzf
  60. gem
  61. jsontools
  62. dirhistory
  63. sublime
  64. sudo
  65. npm
  66. bundle
  67. kitchen
  68. vagrant
  69. almostontop
  70. emoji
  71. )
  72. source ~/.bash_aliases
  73. source $ZSH/oh-my-zsh.sh
  74. source "$(butler --init-completion)"
  75. # Better history search
  76. autoload -U up-line-or-beginning-search
  77. autoload -U down-line-or-beginning-search
  78. zle -N up-line-or-beginning-search
  79. zle -N down-line-or-beginning-search
  80. bindkey "^[[A" up-line-or-beginning-search # Up
  81. bindkey "^[[B" down-line-or-beginning-search # Down]]
  82. COMPLETION_WAITING_DOTS="true"
  83. export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help";
  84. fancy-ctrl-z () {
  85. if [[ $#BUFFER -eq 0 ]]; then
  86. BUFFER="fg"
  87. zle accept-line
  88. else
  89. zle push-input
  90. zle clear-screen
  91. fi
  92. }
  93. zle -N fancy-ctrl-z
  94. bindkey '^Z' fancy-ctrl-z
  95. # Setup zsh-autosuggestions
  96. # source ~/.zsh-autosuggestions/autosuggestions.zsh
  97. # Enable autosuggestions automatically
  98. # zle-line-init() {
  99. # zle autosuggest-start
  100. # }
  101. # zle -N zle-line-init
  102. # use ctrl+t to toggle autosuggestions(hopefully this wont be needed as
  103. # zsh-autosuggestions is designed to be unobtrusive)
  104. # bindkey '^T' autosuggest-toggle
  105. # Customize to your needs...
  106. export PATH=/usr/local/sbin:/usr/local/bin:$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/valiev/.rvm/bin
  107. #export DYLD_INSERT_LIBRARIES="/Users/valiev/dev/opensource/stderred/build/libstderred.dylib${DYLD_INSERT_LIBRARIES:+:$DYLD_INSERT_LIBRARIES}"