.zshrc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. source ~/.profile
  2. # If you come from bash you might have to change your $PATH.
  3. # export PATH=$HOME/bin:/usr/local/bin:$PATH
  4. # Path to your oh-my-zsh installation.
  5. export ZSH=/home/frans/.oh-my-zsh
  6. # Set name of the theme to load. Optionally, if you set this to "random"
  7. # it'll load a random theme each time that oh-my-zsh is loaded.
  8. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
  9. ZSH_THEME="michelebologna"
  10. # Set list of themes to load
  11. # Setting this variable when ZSH_THEME=random
  12. # cause zsh load theme from this variable instead of
  13. # looking in ~/.oh-my-zsh/themes/
  14. # An empty array have no effect
  15. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
  16. # Uncomment the following line to use case-sensitive completion.
  17. # CASE_SENSITIVE="true"
  18. # Uncomment the following line to use hyphen-insensitive completion. Case
  19. # sensitive completion must be off. _ and - will be interchangeable.
  20. # HYPHEN_INSENSITIVE="true"
  21. # Uncomment the following line to disable bi-weekly auto-update checks.
  22. # DISABLE_AUTO_UPDATE="true"
  23. # Uncomment the following line to change how often to auto-update (in days).
  24. # export UPDATE_ZSH_DAYS=13
  25. # Uncomment the following line to disable colors in ls.
  26. # DISABLE_LS_COLORS="true"
  27. # Uncomment the following line to disable auto-setting terminal title.
  28. # DISABLE_AUTO_TITLE="true"
  29. # Uncomment the following line to enable command auto-correction.
  30. # ENABLE_CORRECTION="true"
  31. # Uncomment the following line to display red dots whilst waiting for completion.
  32. # COMPLETION_WAITING_DOTS="true"
  33. # Uncomment the following line if you want to disable marking untracked files
  34. # under VCS as dirty. This makes repository status check for large repositories
  35. # much, much faster.
  36. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  37. # Uncomment the following line if you want to change the command execution time
  38. # stamp shown in the history command output.
  39. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  40. # HIST_STAMPS="mm/dd/yyyy"
  41. # Would you like to use another custom folder than $ZSH/custom?
  42. # ZSH_CUSTOM=/path/to/new-custom-folder
  43. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  44. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  45. # Example format: plugins=(rails git textmate ruby lighthouse)
  46. # Add wisely, as too many plugins slow down shell startup.
  47. plugins=(
  48. git
  49. bundler
  50. rake
  51. rbenv
  52. ruby
  53. rails
  54. )
  55. source $ZSH/oh-my-zsh.sh
  56. # User configuration
  57. # export MANPATH="/usr/local/man:$MANPATH"
  58. # You may need to manually set your language environment
  59. # export LANG=en_US.UTF-8
  60. # Preferred editor for local and remote sessions
  61. # if [[ -n $SSH_CONNECTION ]]; then
  62. # export EDITOR='vim'
  63. # else
  64. # export EDITOR='mvim'
  65. # fi
  66. # Compilation flags
  67. # export ARCHFLAGS="-arch x86_64"
  68. # ssh
  69. # export SSH_KEY_PATH="~/.ssh/rsa_id"
  70. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  71. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  72. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  73. # For a full list of active aliases, run `alias`.
  74. #
  75. # Example aliases
  76. # alias zshconfig="mate ~/.zshrc"
  77. # alias ohmyzsh="mate ~/.oh-my-zsh"
  78. source ~/.aliases
  79. bindkey -v
  80. # Fuzzy Finder
  81. source /usr/share/fzf/completion.zsh
  82. source /usr/share/fzf/key-bindings.zsh
  83. fzf-history-widget-accept() {
  84. fzf-history-widget
  85. zle accept-line
  86. }
  87. zle -N fzf-history-widget-accept
  88. bindkey '^X^R' fzf-history-widget-accept
  89. source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
  90. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  91. ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)