Created
July 23, 2013 17:02
-
-
Save kparrish/6064111 to your computer and use it in GitHub Desktop.
My .bashrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Display system information using archey | |
| /usr/bin/archey | |
| # Installed Packages | |
| export PATH=${PATH}:/opt/lammps/src | |
| export PATH=${PATH}:/opt/gulp/Src | |
| export PATH=${PATH}:/opt/zotero | |
| export PATH=${PATH}:/opt/LD_300 | |
| export PATH=${PATH}:/usr/local/matlab/R2012a/bin | |
| # Cluster variables (call in bash using $bw) | |
| bw="user@beowulf.cmu.edu" | |
| # My Custom scripts | |
| export PATH=${PATH}:/usr/local/bin | |
| # Library Path | |
| export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu | |
| # LMPPY | |
| export PYTHONPATH=/opt/lammps/python:$PYTHONPATH | |
| # LD_LIBRARY_PATH | |
| export LD_LIBRARY_PATH=/opt/lammps/src:$LD_LIBRARY_PATH | |
| # Copy Clip | |
| cpyc() { | |
| pwd | xclip -selection clipboard | |
| } | |
| # Print Screen Window | |
| psw() { | |
| file=${1:?"error: I need a filename"} | |
| import ${file} | |
| } | |
| # Custom Bash Prompt | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1='\[\033[01;34m\]\u@\h\[\033[01;32m\] \w\[\033[01;31m\]$(parse_git_branch) \[\033[01;32m\]\$\[\033[00m\] ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment