zshrc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:$HOME/Documents/android-dev/tools:$HOME/Documents/android-dev/platform-tools
  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. alias xbox_controller='sudo xboxdrv --config ~/Documents/xboxdrv_profiles/wiredxbox_minecraft.conf --detach-kernel-driver'
  33. # Set Home, End, Del, PgUp, PgDown keys to actually do something.
  34. bindkey '^[OH' beginning-of-line
  35. bindkey '^[OF' end-of-line
  36. bindkey '^[[3~' delete-char
  37. bindkey '^[[5~' beginning-of-buffer-or-history
  38. bindkey '^[[6~' end-of-buffer-or-history