zshrc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. # OS X keep current PWD when opening new tabs/windows
  26. precmd () {print -Pn "\e]2; %~/ \a"}
  27. preexec () {print -Pn "\e]2; %~/ \a"}
  28. # Set Home, End, Del, PgUp, PgDown keys to actually do something.
  29. bindkey '^[OH' beginning-of-line
  30. bindkey '^[OF' end-of-line
  31. bindkey '^[[3~' delete-char
  32. bindkey '^[[5~' beginning-of-buffer-or-history
  33. bindkey '^[[6~' end-of-buffer-or-history
  34. export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting