1
0

zshrc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. plugins=(git pass brew)
  10. source $ZSH/oh-my-zsh.sh
  11. ### U S E R C O N F I G ###
  12. # Device-specifig setup (ignored by git)
  13. source .zsh-ownrc
  14. ### ALIASES ###
  15. # list directory in human readable (-h), listed (-l) way. Show all files (-a).
  16. # -F: display an indicator for special list entries (folder, links, etc...)
  17. alias ll='ls -Fhla | less -R'
  18. alias l='ls -lha'
  19. # git aliases
  20. alias gits='git status -s'
  21. # setup ROOT-PATH for python
  22. alias SetupPyROOT='
  23. export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH&&
  24. export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH'
  25. ### e5-specific ###
  26. alias me5='sshfs lhcb: ~/mount/e5 && cd ~/mount/e5'
  27. # root
  28. alias iwantroot='cd $(brew --prefix root) && source libexec/thisroot.sh'
  29. ### Users PATHs ###
  30. # Uni
  31. export SMD=~/Documents/Studium/2014\ Wintersemester/SMD/
  32. export STUD=~/Documents/Studium/
  33. export SEM=~/Documents/Studium/2014\ Wintersemester/
  34. export FP=~/Documents/Studium/FP14/
  35. export AP=~/Documents/Studium/AP12/
  36. export PEP=~/Documents/Studium/pep-et-al/
  37. export E5=~/Documents/Studium/e5/
  38. # Work
  39. export WORK=~/Documents/Arbeit/
  40. export FH=~/Documents/Arbeit/2014/ItInvFb9/
  41. # cool extract function
  42. function extract()
  43. {
  44. if [ -f $1 ]; then
  45. case $1 in
  46. *.tar.bz2) tar xvjf $1 ;;
  47. *.tar.gz) tar xvzf $1 ;;
  48. *.tar) tar xvf $1 ;;
  49. *.zip) unzip $1 ;;
  50. *) echo "'$1' cannot be extracted via extract()";;
  51. esac
  52. else
  53. echo "'$1' is not a valid file!"
  54. fi
  55. }