1
0

bash_profile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # activate colors
  2. export CLICOLOR=1
  3. ### ALIASES ###
  4. # list directory in human readable (-h), listed (-l) way. Show all files (-a).
  5. # -F: display an indicator for special list entries (folder, links, etc...)
  6. # pipe it to less for scrolling
  7. alias ll='ls -Fhla | less -R'
  8. # change into current semester
  9. alias sem='cd ~/Documents/Studium/.currentSemester'
  10. # connect to pihalbe@uberspace shell
  11. alias uber='ssh pihalbe@octans.uberspace.de'
  12. # run python3
  13. alias py='python3.3'
  14. alias ipy='ipython3-3.3'
  15. # python2
  16. alias py2='python2.7'
  17. alias ipy2='ipython-2.7'
  18. # use consolemode MacVim
  19. alias vim='mvim -v'
  20. ### e5-specific ###
  21. alias me5='sshfs lhcb: ~/mount/e5 && cd ~/mount/e5'
  22. # cool extract function
  23. function extract()
  24. {
  25. if [ -f $1 ]; then
  26. case $1 in
  27. *.tar.bz2) tar xvjf $1 ;;
  28. *.tar.gz) tar xvzf $1 ;;
  29. *.tar) tar xvf $1 ;;
  30. *.zip) unzip $1 ;;
  31. *) echo "'$1' cannot be extracted via extract()";;
  32. esac
  33. else
  34. echo "'$1' is not a valid file!"
  35. fi
  36. }
  37. # let me find ROOT maagic
  38. # (This will perfom some magic to define ROOT paths and stuff)
  39. if [ -d "/opt/ROOT/" ]; then
  40. source /opt/ROOT/5.34.18/bin/thisroot.sh
  41. else
  42. if [ -f "/opt/local/bin/root" ]; then
  43. source /opt/local/bin/thisroot.sh
  44. fi
  45. fi
  46. # let me find the postgresql executables
  47. export PATH=/opt/local/lib/postgresql93/bin:$PATH
  48. ##
  49. # Your previous /Users/greenapple/.bash_profile file was backed up as /Users/greenapple/.bash_profile.macports-saved_2014-03-07_at_15:37:47
  50. ##
  51. # MacPorts Installer addition on 2014-03-07_at_15:37:47: adding an appropriate PATH variable for use with MacPorts.
  52. export PATH=/opt/local/bin:/opt/local/sbin:$PATH
  53. # Finished adapting your PATH environment variable for use with MacPorts.