.zshrc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ### O H - M Y - Z S H C O N F I G ###
  2. ## Path to your oh-my-zsh installation.
  3. export ZSH=~/.oh-my-zsh
  4. # Set name of the theme to load.
  5. # Look in ~/.oh-my-zsh/themes/
  6. # Optionally, if you set this to "random", it'll load a random theme each
  7. # time that oh-my-zsh is loaded.
  8. ZSH_THEME="agnoster"
  9. # Device-specifig setup (ignored by git)
  10. # source local config first to overwrite default theme if wanted
  11. source .zsh_local
  12. plugins=(git pass brew)
  13. source $ZSH/oh-my-zsh.sh
  14. ### U S E R C O N F I G ###
  15. ### ALIASES ###
  16. # list directory in human readable (-h), listed (-l) way. Show all files (-a).
  17. # -F: display an indicator for special list entries (folder, links, etc...)
  18. alias ll='ls -Fhla | less -R'
  19. alias l='ls -lhatr'
  20. # cool extract function
  21. function extract()
  22. {
  23. if [ -f $1 ]; then
  24. case $1 in
  25. *.tar.bz2) tar xvjf $1 ;;
  26. *.tar.gz) tar xvzf $1 ;;
  27. *.tar) tar xvf $1 ;;
  28. *.zip) unzip $1 ;;
  29. *) echo "'$1' cannot be extracted via extract()";;
  30. esac
  31. else
  32. echo "'$1' is not a valid file!"
  33. fi
  34. }