zshrc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. ### RasPi-Stuff
  30. #alias dhcpon='sudo /bin/launchctl load -w /System/Library/LaunchDaemons/bootps.plist&&sudo ipconfig set en0 MANUAL 192.168.33.1 255.255.255.0&&echo "DHCP-Server startet for 192.168.33.1"'
  31. #alias dhcpoff='sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/bootps.plist&&sudo ipconfig set en0 DHCP&&echo "DHCP-Server shut down"'
  32. #alias couchdb='ssh pi@192.168.33.2 -N -L 9000:localhost:5984'
  33. ### Users PATHs ###
  34. # Uni
  35. export STUD=~/Documents/Studium/
  36. export SEM=~/Documents/Studium/2014\ Wintersemester/
  37. export FP=~/Documents/Studium/FP14/
  38. export AP=~/Documents/Studium/AP12/
  39. export PEP=~/Documents/Studium/pep-et-al/
  40. export E5=~/Documents/Studium/e5/
  41. # Work
  42. export WORK=~/Documents/Arbeit/
  43. export FH=~/Documents/Arbeit/2014/ItInvFb9/
  44. # cool extract function
  45. function extract()
  46. {
  47. if [ -f $1 ]; then
  48. case $1 in
  49. *.tar.bz2) tar xvjf $1 ;;
  50. *.tar.gz) tar xvzf $1 ;;
  51. *.tar) tar xvf $1 ;;
  52. *.zip) unzip $1 ;;
  53. *) echo "'$1' cannot be extracted via extract()";;
  54. esac
  55. else
  56. echo "'$1' is not a valid file!"
  57. fi
  58. }