daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest May 31st, 2017 545 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # comment:  to get this .profile to work, might need to type "ln -sf .profile .zshrc" in terminal, which links the .profile file (this one) to the .zshrc one, which is opened every time terminal is opened in zsh (or bash?)
  2. # note: to edit this file with emacs, emacs -nw .zshrc (no window), then the usual ctrl+x, ctrl+s to save.  ctrl+x, ctrl+c will exit emacs.
  3.  
  4. #this tells the OS to look in /usr/local/bin before looking in the rest of $PATH for the emacs executable... that way, I am sure I am using the version of emacs in /usr/local/bin
  5. PATH=/usr/local/bin:$PATH
  6.  
  7. #adding the pgsql binary to the path
  8. PATH=/usr/local/pgsql/bin:$PATH
  9.  
  10. #autoconf path to path
  11. export PATH=/Applications/BasicSoftware/autoconf-2.69/bin:$PATH
  12.  
  13. ############
  14. #SHELL ALIASES
  15. ############
  16. alias ls='ls -G' #to have ls be outputted in colors
  17.  
  18. #############
  19. #SSH ALIASES
  20. #############
  21. #alias sshnevis='ssh kaleko@houston.nevis.columbia.edu -X -Y'
  22. alias sshnevis='ssh kaleko@houston.nevis.columbia.edu'
  23. #alias sshpupin='ssh kaleko@happy.phys.columbia.edu -X -Y'
  24. alias sshpupin='ssh kaleko@phys.columbia.edu -X -Y'
  25. alias sshubdaq='ssh kaleko@uboonedaq-evb.fnal.gov -X -Y'
  26. alias sshseb01='ssh kaleko@uboonedaq-seb-01.fnal.gov -X -Y'
  27. alias sshseb10='ssh kaleko@uboonedaq-seb-10.fnal.gov -X -Y'
  28. alias sshdabhb='ssh kaleko@uboonedaq-seb-dabhb.fnal.gov -X -Y'
  29. alias sshfnal='ssh kaleko@uboonegpvm01.fnal.gov -X -Y'
  30. alias sshyale='ssh -Y guest19@bulldogj.wss.yale.edu'
  31. alias sshlartf='ssh kaleko@ubdaq-prod-evb.fnal.gov -X -Y'
  32.  
  33. ##############
  34. #ROOT STARTUP
  35. ##############
  36. #. /Applications/root/bin/thisroot.sh
  37. # In my computer, /Applications/BasicSoftware/root is a sym-link
  38. # pointing toward a specific version of ROOT installation. In order
  39. # to use a different version of ROOT, I change the sym-link rather
  40. # than my ROOTSYS below (so I do not have to log out/in again).
  41. export ROOTSYS=/Applications/BasicSoftware/root
  42. export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
  43. export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH
  44. export PATH=$ROOTSYS/bin:$PATH
  45. export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH
  46.  
  47. #PyQt4 stuff is in /Application/BasicSoftware area, so make sure python looks there first
  48. export PYTHONPATH=/Applications/BasicSoftware/PyQt4:$PYTHONPATH
  49.  
  50. export MACOSX_DEPLOYMENT_TARGET=10.9
  51.  
  52. export EDITOR=emacs
  53.  
  54.  
  55. #this used to be in setenv.sh, but I guess it should be exported
  56. #regardless of whether I'm using LArLight or not
  57. export CLICOLOR=1
  58. export LSCOLORS=ExFxCxDxBxegedabagacad
  59.  
  60. ##
  61. # Your previous /Users/davidkaleko/.profile file was backed up as /Users/davidkaleko/.profile.macports-saved_2013-12-13_at_10:15:53
  62. ##
  63.  
  64. # MacPorts Installer addition on 2013-12-13_at_10:15:53: adding an appropriate PATH variable for use with MacPorts.
  65. export PATH=/opt/local/bin:/opt/local/sbin:$PATH
  66. # Finished adapting your PATH environment variable for use with MacPorts.
  67.  
  68.  
  69.  
  70. #making custom begin-of-command-line prompt
  71. if setopt >/dev/null 2>&1 ; then
  72.    # zsh version                                                                                                                
  73.    export PROMPT="%m:[%D{%L:%M%P}] `dirs` > "
  74.    # chpwd() is executed by zsh every time the directory changes.                                                                
  75.    chpwd() { PROMPT="%m:[%D{%L:%M%P}] `dirs` > "; }
  76. else
  77.    # bash prompt                                                                                                                
  78.    export PS1="[\t][\h:\w]\$ "
  79. fi
  80.  
  81.  
  82. alias scid='open /Applications/PersonalSoftware/ScidvsMac.app'
  83. alias startpg='nohup /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data </dev/null >>server.log 2>&1 </dev/null &'
  84. alias copy="tr -d '\n' | pbcopy" #usage example: echo $PWD | copy, then use cmd+v to paste anywhere
  85. #alias sshrpi='ssh pi@dyn-160-39-30-175.dyn.columbia.edu'
  86. #alias sshrpilocal='ssh pi@192.168.1.53'
  87. alias sshrpilocal='ssh pi@192.168.1.108'
  88. alias sshrpiexternal='ssh -l pi -p 22 c-69-243-139-203.hsd1.il.comcast.net'
  89. #alias sshrpifnal='ssh pi@131.225.56.113 -X'
  90.  
  91. alias emasc='emacs'
  92. alias emac='emacs'
  93.  
  94. lastf(){
  95.     local lastf=$(ls -t | head -n 1 | tr -d '\n')
  96.     echo "$lastf" | copy
  97.     echo -e "\n>>> \""${lastf}"\" <<< copied to clipboard.\n"
  98. }
  99.  
  100. yell() { echo -e "\n\n\n                 \033[91;5m${1}\033[0m\n\n\n"; }
  101.  
  102. share(){
  103.     scp $1 kaleko@houston.nevis.columbia.edu:~/WWW/
  104.     local myurl="http://www.nevis.columbia.edu/~kaleko/$(basename $1 | tr -d '\n')"
  105.     echo "$myurl" | copy
  106.     echo "URL: ${myurl} copied to clipboard. Use cmd+v to paste."
  107. }
  108.  
  109. function tabname {
  110.     printf "\e]1;$1\a"
  111. }
  112.  
  113. function winname {
  114.     printf "\e]2;$1\a"
  115. }
  116.  
  117. function pdg {
  118.     python /Users/davidkaleko/.custom_python_scripts/get_pdg_name.py $1
  119. }
  120.  
  121. ### python automatically sources the file under this varible when opened in interpeter mode
  122. export PYTHONSTARTUP='/Users/davidkaleko/.my_python_startup'
  123.  
  124. ### manually putting the numpy install location (that pip installs to)
  125. ### at the front of my sys path so that when i use pip to upgrade things, it actually finds the upgraded packages
  126. export PYTHONPATH=/Library/Python/2.7/site-packages/:$PYTHONPATH
  127.  
  128. ##
  129. # Your previous /Users/davidkaleko/.profile file was backed up as /Users/davidkaleko/.profile.macports-saved_2015-08-14_at_16:40:07
  130. ##
  131.  
  132. # MacPorts Installer addition on 2015-08-14_at_16:40:07: adding an appropriate PATH variable for use with MacPorts.
  133. export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
  134. # Finished adapting your PATH environment variable for use with MacPorts.
  135.  
  136.  
  137. alias disablemouseaccel='defaults write .GlobalPreferences com.apple.mouse.scaling 0'
  138.  
  139.  
  140.  
  141. # temp source larlite setup since i do it 99% of the time i open a terminal
  142. source /Users/davidkaleko/larlite/config/setup.sh
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top