Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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?)
- # 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.
- #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
- PATH=/usr/local/bin:$PATH
- #adding the pgsql binary to the path
- PATH=/usr/local/pgsql/bin:$PATH
- #autoconf path to path
- export PATH=/Applications/BasicSoftware/autoconf-2.69/bin:$PATH
- ############
- #SHELL ALIASES
- ############
- alias ls='ls -G' #to have ls be outputted in colors
- #############
- #SSH ALIASES
- #############
- #alias sshnevis='ssh kaleko@houston.nevis.columbia.edu -X -Y'
- alias sshnevis='ssh kaleko@houston.nevis.columbia.edu'
- #alias sshpupin='ssh kaleko@happy.phys.columbia.edu -X -Y'
- alias sshpupin='ssh kaleko@phys.columbia.edu -X -Y'
- alias sshubdaq='ssh kaleko@uboonedaq-evb.fnal.gov -X -Y'
- alias sshseb01='ssh kaleko@uboonedaq-seb-01.fnal.gov -X -Y'
- alias sshseb10='ssh kaleko@uboonedaq-seb-10.fnal.gov -X -Y'
- alias sshdabhb='ssh kaleko@uboonedaq-seb-dabhb.fnal.gov -X -Y'
- alias sshfnal='ssh kaleko@uboonegpvm01.fnal.gov -X -Y'
- alias sshyale='ssh -Y guest19@bulldogj.wss.yale.edu'
- alias sshlartf='ssh kaleko@ubdaq-prod-evb.fnal.gov -X -Y'
- ##############
- #ROOT STARTUP
- ##############
- #. /Applications/root/bin/thisroot.sh
- # In my computer, /Applications/BasicSoftware/root is a sym-link
- # pointing toward a specific version of ROOT installation. In order
- # to use a different version of ROOT, I change the sym-link rather
- # than my ROOTSYS below (so I do not have to log out/in again).
- export ROOTSYS=/Applications/BasicSoftware/root
- export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
- export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH
- export PATH=$ROOTSYS/bin:$PATH
- export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH
- #PyQt4 stuff is in /Application/BasicSoftware area, so make sure python looks there first
- export PYTHONPATH=/Applications/BasicSoftware/PyQt4:$PYTHONPATH
- export MACOSX_DEPLOYMENT_TARGET=10.9
- export EDITOR=emacs
- #this used to be in setenv.sh, but I guess it should be exported
- #regardless of whether I'm using LArLight or not
- export CLICOLOR=1
- export LSCOLORS=ExFxCxDxBxegedabagacad
- ##
- # Your previous /Users/davidkaleko/.profile file was backed up as /Users/davidkaleko/.profile.macports-saved_2013-12-13_at_10:15:53
- ##
- # MacPorts Installer addition on 2013-12-13_at_10:15:53: adding an appropriate PATH variable for use with MacPorts.
- export PATH=/opt/local/bin:/opt/local/sbin:$PATH
- # Finished adapting your PATH environment variable for use with MacPorts.
- #making custom begin-of-command-line prompt
- if setopt >/dev/null 2>&1 ; then
- # zsh version
- export PROMPT="%m:[%D{%L:%M%P}] `dirs` > "
- # chpwd() is executed by zsh every time the directory changes.
- chpwd() { PROMPT="%m:[%D{%L:%M%P}] `dirs` > "; }
- else
- # bash prompt
- export PS1="[\t][\h:\w]\$ "
- fi
- alias scid='open /Applications/PersonalSoftware/ScidvsMac.app'
- alias startpg='nohup /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data </dev/null >>server.log 2>&1 </dev/null &'
- alias copy="tr -d '\n' | pbcopy" #usage example: echo $PWD | copy, then use cmd+v to paste anywhere
- #alias sshrpi='ssh pi@dyn-160-39-30-175.dyn.columbia.edu'
- #alias sshrpilocal='ssh pi@192.168.1.53'
- alias sshrpilocal='ssh pi@192.168.1.108'
- alias sshrpiexternal='ssh -l pi -p 22 c-69-243-139-203.hsd1.il.comcast.net'
- #alias sshrpifnal='ssh pi@131.225.56.113 -X'
- alias emasc='emacs'
- alias emac='emacs'
- lastf(){
- local lastf=$(ls -t | head -n 1 | tr -d '\n')
- echo "$lastf" | copy
- echo -e "\n>>> \""${lastf}"\" <<< copied to clipboard.\n"
- }
- yell() { echo -e "\n\n\n \033[91;5m${1}\033[0m\n\n\n"; }
- share(){
- scp $1 kaleko@houston.nevis.columbia.edu:~/WWW/
- local myurl="http://www.nevis.columbia.edu/~kaleko/$(basename $1 | tr -d '\n')"
- echo "$myurl" | copy
- echo "URL: ${myurl} copied to clipboard. Use cmd+v to paste."
- }
- function tabname {
- printf "\e]1;$1\a"
- }
- function winname {
- printf "\e]2;$1\a"
- }
- function pdg {
- python /Users/davidkaleko/.custom_python_scripts/get_pdg_name.py $1
- }
- ### python automatically sources the file under this varible when opened in interpeter mode
- export PYTHONSTARTUP='/Users/davidkaleko/.my_python_startup'
- ### manually putting the numpy install location (that pip installs to)
- ### at the front of my sys path so that when i use pip to upgrade things, it actually finds the upgraded packages
- export PYTHONPATH=/Library/Python/2.7/site-packages/:$PYTHONPATH
- ##
- # Your previous /Users/davidkaleko/.profile file was backed up as /Users/davidkaleko/.profile.macports-saved_2015-08-14_at_16:40:07
- ##
- # MacPorts Installer addition on 2015-08-14_at_16:40:07: adding an appropriate PATH variable for use with MacPorts.
- export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
- # Finished adapting your PATH environment variable for use with MacPorts.
- alias disablemouseaccel='defaults write .GlobalPreferences com.apple.mouse.scaling 0'
- # temp source larlite setup since i do it 99% of the time i open a terminal
- source /Users/davidkaleko/larlite/config/setup.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement