zshrc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. # gdb with macports
  20. alias gdb='ggdb'
  21. # git aliases
  22. alias gits='git status -s'
  23. # setup ROOT-PATH for python
  24. alias SetupPyROOT='
  25. export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH&&
  26. export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH'
  27. ### e5-specific ###
  28. alias me5='sshfs lhcb: ~/mount/e5 && cd ~/mount/e5'
  29. # root
  30. alias iwantroot='cd $(brew --prefix root) && source libexec/thisroot.sh'
  31. ### Users PATHs ###
  32. # Uni
  33. export SMD=~/Documents/Studium/2014\ Wintersemester/SMD/
  34. export STUD=~/Documents/Studium/
  35. export SEM=~/Documents/Studium/2014\ Wintersemester/
  36. export FP=~/Documents/Studium/FP14/
  37. export AP=~/Documents/Studium/AP12/
  38. export PEP=~/Documents/Studium/pep-et-al/
  39. export E5=~/Documents/Studium/e5/
  40. # Work
  41. export WORK=~/Documents/Arbeit/
  42. export FH=~/Documents/Arbeit/2014/ItInvFb9/
  43. # cool extract function
  44. function extract()
  45. {
  46. if [ -f $1 ]; then
  47. case $1 in
  48. *.tar.bz2) tar xvjf $1 ;;
  49. *.tar.gz) tar xvzf $1 ;;
  50. *.tar) tar xvf $1 ;;
  51. *.zip) unzip $1 ;;
  52. *) echo "'$1' cannot be extracted via extract()";;
  53. esac
  54. else
  55. echo "'$1' is not a valid file!"
  56. fi
  57. }