zshrc 973 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Lines configured by zsh-newuser-install
  2. HISTFILE=~/.histfile
  3. HISTSIZE=1000
  4. SAVEHIST=1000
  5. setopt incappendhistory nomatch correct_all
  6. unsetopt beep
  7. bindkey -v
  8. zstyle :compinstall filename '/Users/drew/.zshrc'
  9. autoload -Uz compinit
  10. compinit
  11. # Load RVM into a shell session *as a function*
  12. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
  13. autoload -U colors && colors
  14. # Have to reset color to cyan after the bold tags for some reason.
  15. PROMPT="%{$fg[cyan]%}[%n@%M %B%1~%b%{$fg[cyan]%}]%# %{$reset_color%}"
  16. alias ll='ls -alF'
  17. alias la='ls -A'
  18. alias l='ls -CF'
  19. alias ls='ls -G'
  20. export EDITOR="mvim"
  21. alias vim="mvim"
  22. alias vimdiff="mvimdiff"
  23. # OS X completions
  24. fpath=(/usr/local/share/zsh-completions $fpath)
  25. # Set Home, End, Del, PgUp, PgDown keys to actually do something.
  26. bindkey '^[OH' beginning-of-line
  27. bindkey '^[OF' end-of-line
  28. bindkey '^[[3~' delete-char
  29. bindkey '^[[5~' beginning-of-buffer-or-history
  30. bindkey '^[[6~' end-of-buffer-or-history