zshrc 848 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Device-specifig setup (ignored by git)
  2. # source local config first to overwrite default theme if wanted
  3. source .zsh_local
  4. # Source Prezto.
  5. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
  6. source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
  7. fi
  8. ### U S E R C O N F I G ###
  9. # random string function
  10. random-string()
  11. {
  12. LC_CTYPE=C tr -dc A-Za-z0-9 < /dev/urandom | fold -w ${1:-32} | head -n 1
  13. }
  14. #
  15. # Aliases
  16. #
  17. # Git
  18. alias glol="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
  19. alias glola="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all"
  20. # Utility
  21. alias rm="nocorrect rm"
  22. #
  23. # Python
  24. #
  25. # virtualenvwrapper
  26. source virtualenvwrapper.sh
  27. export VIRTUAL_ENV_DISABLE_PROMT=yes