zshrc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. HISTFILE=~/.histfile
  2. HISTSIZE=1000
  3. SAVEHIST=1000
  4. setopt incappendhistory nomatch correct
  5. unsetopt beep
  6. bindkey -v
  7. zstyle :compinstall filename '/home/drew/.zshrc'
  8. autoload -Uz compinit
  9. compinit
  10. autoload -U colors && colors
  11. # Have to reset color to cyan after the bold tags for some reason.
  12. PROMPT="%{$fg[cyan]%}[%n@%M %B%1~%b%{$fg[cyan]%}]%# %{$reset_color%}"
  13. alias ll='ls -alF'
  14. alias la='ls -A'
  15. alias l='ls -CF'
  16. alias ls='ls --color=auto'
  17. eval "$(hub alias -s)"
  18. # Allow ctrl+S in vim to save files, ie pass
  19. # the command to vim when vim is open.
  20. vim() {
  21. local STTYOPTS="$(stty --save)"
  22. stty stop '' -ixoff
  23. command vim --servername vim "$@"
  24. stty "$STTYOPTS"
  25. }
  26. export EDITOR="vim"
  27. # Set Home, End, Del, PgUp, PgDown keys to actually do something.
  28. bindkey '^[OH' beginning-of-line
  29. bindkey '^[OF' end-of-line
  30. bindkey '^[[3~' delete-char
  31. bindkey '^[[5~' beginning-of-buffer-or-history
  32. bindkey '^[[6~' end-of-buffer-or-history
  33. if [ -x /usr/bin/ssh-agent -a -z "$SSH_AUTH_SOCK" ]; then
  34. eval "$(keychain --eval -Q -q --agents ssh `find $HOME/.ssh/* ! -name '*.pub' ! -name 'config' ! -name 'known_hosts'`)"
  35. fi
  36. export DOTFILES=$HOME/Documents/dotfiles
  37. export PATH=$DOTFILES/bin:$PATH
  38. export PATH=$PATH:$HOME/.rvm/bin
  39. export PATH=$PATH:/opt/android-sdk/tools:/opt/android-sdk/platform-tools
  40. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
  41. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh