1
0

.zshrc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. alias mbam='sshfs bam: ~/mount/e5 && cd ~/mount/e5'
  28. # root
  29. alias iwantroot='cd $(brew --prefix root) && source libexec/thisroot.sh && cd -'
  30. # rapidminer
  31. alias rapidminer='java -jar -Xmx6G ~/Applications/rapidminer/lib/rapidminer.jar'
  32. # cool extract function
  33. function extract()
  34. {
  35. if [ -f $1 ]; then
  36. case $1 in
  37. *.tar.bz2) tar xvjf $1 ;;
  38. *.tar.gz) tar xvzf $1 ;;
  39. *.tar) tar xvf $1 ;;
  40. *.zip) unzip $1 ;;
  41. *) echo "'$1' cannot be extracted via extract()";;
  42. esac
  43. else
  44. echo "'$1' is not a valid file!"
  45. fi
  46. }