zshrc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. export PATH="$PATH:$HOME/.rvm/bin"
  12. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
  13. export EDITOR="vim"
  14. autoload -U colors && colors
  15. # Have to reset color to cyan after the bold tags for some reason.
  16. PROMPT="%{$fg[cyan]%}[%n@%M %B%1~%b%{$fg[cyan]%}]%# %{$reset_color%}"
  17. alias ll='ls -alF'
  18. alias la='ls -A'
  19. alias l='ls -CF'
  20. alias ls='ls --color=auto'
  21. eval "$(hub alias -s)"
  22. # Allow ctrl+S in vim to save files, ie pass
  23. # the command to vim when vim is open.
  24. vim() {
  25. local STTYOPTS="$(stty --save)"
  26. stty stop '' -ixoff
  27. command vim --servername vim "$@"
  28. stty "$STTYOPTS"
  29. }
  30. # Set Home, End, Del, PgUp, PgDown keys to actually do something.
  31. bindkey '^[OH' beginning-of-line
  32. bindkey '^[OF' end-of-line
  33. bindkey '^[[3~' delete-char
  34. bindkey '^[[5~' beginning-of-buffer-or-history
  35. bindkey '^[[6~' end-of-buffer-or-history
  36. if [ -x /usr/bin/ssh-agent -a -z "$SSH_AUTH_SOCK" ]; then
  37. eval "$(keychain --eval -Q -q --agents ssh `find $HOME/.ssh/* ! -name '*.pub' ! -name 'config' ! -name 'known_hosts'`)"
  38. fi
  39. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh