zshrc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Lines configured by zsh-newuser-install
  2. HISTFILE=~/.histfile
  3. HISTSIZE=1000
  4. SAVEHIST=1000
  5. setopt incappendhistory nomatch
  6. unsetopt beep
  7. bindkey -v
  8. # End of lines configured by zsh-newuser-install
  9. # The following lines were added by compinstall
  10. zstyle :compinstall filename '/home/drew/.zshrc'
  11. autoload -Uz compinit
  12. compinit
  13. # End of lines added by compinstall
  14. export EDITOR="vim"
  15. export PATH=$PATH:$HOME/.gem/ruby/2.1.0/bin
  16. export PATH=$PATH:/opt/android-sdk/tools:/opt/android-sdk/platform-tools
  17. export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
  18. autoload -U colors && colors
  19. # Have to reset color to cyan after the bold tags for some reason.
  20. PROMPT="%{$fg[cyan]%}[%n@%M %B%1~%b%{$fg[cyan]%}]%# %{$reset_color%}"
  21. alias ll='ls -alF'
  22. alias la='ls -A'
  23. alias l='ls -CF'
  24. alias ls='ls --color=auto'
  25. # Allow ctrl+S in vim to save files, ie pass
  26. # the command to vim when vim is open.
  27. vim() {
  28. local STTYOPTS="$(stty --save)"
  29. stty stop '' -ixoff
  30. command vim --servername vim "$@"
  31. stty "$STTYOPTS"
  32. }
  33. alias xbox_controller='sudo xboxdrv --config ~/Documents/xboxdrv_profiles/wiredxbox_minecraft.conf --detach-kernel-driver'
  34. # Set Home, End, Del, PgUp, PgDown keys to actually do something.
  35. bindkey '^[OH' beginning-of-line
  36. bindkey '^[OF' end-of-line
  37. bindkey '^[[3~' delete-char
  38. bindkey '^[[5~' beginning-of-buffer-or-history
  39. bindkey '^[[6~' end-of-buffer-or-history