zshrc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Lines configured by zsh-newuser-install
  2. HISTFILE=~/.histfile
  3. HISTSIZE=1000
  4. SAVEHIST=1000
  5. setopt appendhistory 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/drew/.gem/ruby/2.0.0/bin
  16. autoload -U colors && colors
  17. # Have to reset color to cyan after the bold tags for some reason.
  18. PROMPT="%{$fg[cyan]%}[%n@%M %B%1~%b%{$fg[cyan]%}]%# %{$reset_color%}"
  19. alias ll='ls -alF'
  20. alias la='ls -A'
  21. alias l='ls -CF'
  22. alias ls='ls --color=auto'
  23. # Allow ctrl+S in vim to save files, ie pass
  24. # the command to vim when vim is open.
  25. vim() {
  26. local STTYOPTS="$(stty --save)"
  27. stty stop '' -ixoff
  28. command vim --servername vim "$@"
  29. stty "$STTYOPTS"
  30. }
  31. alias xbox_controller='sudo xboxdrv --config ~/Documents/xboxdrv_profiles/wiredxbox_minecraft.conf --detach-kernel-driver'
  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