Skip to content

Instantly share code, notes, and snippets.

@kparrish
Created July 23, 2013 17:02
Show Gist options
  • Select an option

  • Save kparrish/6064111 to your computer and use it in GitHub Desktop.

Select an option

Save kparrish/6064111 to your computer and use it in GitHub Desktop.
My .bashrc
# 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