1
0

.zshrc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 -lha'
  20. # git aliases
  21. alias gits='git status -s'
  22. # setup ROOT-PATH for python
  23. alias SetupPyROOT='
  24. export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH&&
  25. export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH'
  26. ### e5-specific ###
  27. alias me5='sshfs lhcb: ~/mount/e5 && cd ~/mount/e5'
  28. alias mbam='sshfs bam: ~/mount/e5 && cd ~/mount/e5'
  29. # root
  30. alias iwantroot='cd $(brew --prefix root) && source libexec/thisroot.sh && cd -'
  31. # rapidminer
  32. alias rapidminer='java -jar -Xmx6G ~/Applications/rapidminer/lib/rapidminer.jar'
  33. # cool extract function
  34. function extract()
  35. {
  36. if [ -f $1 ]; then
  37. case $1 in
  38. *.tar.bz2) tar xvjf $1 ;;
  39. *.tar.gz) tar xvzf $1 ;;
  40. *.tar) tar xvf $1 ;;
  41. *.zip) unzip $1 ;;
  42. *) echo "'$1' cannot be extracted via extract()";;
  43. esac
  44. else
  45. echo "'$1' is not a valid file!"
  46. fi
  47. }