zshrc 1.4 KB

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