Skip to content

Instantly share code, notes, and snippets.

@clathrop
Last active September 30, 2015 01:05
Show Gist options
  • Save clathrop/25cc2c5f6242ebff3d61 to your computer and use it in GitHub Desktop.
Save clathrop/25cc2c5f6242ebff3d61 to your computer and use it in GitHub Desktop.
My local .bash_profile
parse_git_branch() {
git branch 2>/dev/null | grep \* | sed -ne 's#\* ##p' | awk -F / '{print " [GIT:"$0 "]"}'
}
export PS1='\[\033[00;32m\]\w\[\033[00m\]$(parse_git_branch)\$ '
########### ALIASES ##############
#commands to change window size, big and small
alias smw="printf '\033[8;25;100t'"
alias lgw="printf '\033[8;50;150t'"
#quick edit bash profile
alias ebash="subl ~/.bash_profile"
alias vibash="vi ~/.bash_profile"
#lookin at stuff
alias l="ls"
alias ll="ls -l"
alias la="ls -a"
alias lla="ls -la"
#startups and shutdowns
alias jiveup="mvn -DskipTests=true -Dcargo.wait=true -P int cargo:start"
alias psqlup="pg_ctl start -D /usr/local/var/postgres/ -l /usr/local/Cellar/postgresql/9.4.4/logs/logfile"
alias iupl="/Users/clathrop/work/informatica/informatica-aem/author/crx-quickstart/bin/start; tail -100f /Users/clathrop/work/informatica/informatica-aem/author/crx-quickstart/logs/error.log"
#accessing envs
alias sshinfadevauth="ssh ec2-user@54.191.240.162"
alias sshinfadevpub="ssh ec2-user@54.191.243.158"
export CLICOLOR=1
export PATH=$PATH:/Applications/Sublime\ Text.app/Contents/SharedSupport/bin:/usr/local/apache-maven-3.2.5/bin:/Users/clathrop/work/adobe-aem/author/crx-quickstart/bin
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
export ITUNES_HOME="${HOME}/Music/iTunes"
export GROOVY_HOME="/usr/local/groovy-2.4.3"
export MVN_HOME="/usr/local/apache-maven-3.2.5"
export M3_HOME=$MVN_HOME
export M2_HOME=$MVN_HOME
export M2_REPO="/Users/clathrop/.m2/repository"
export M3_REPO=$M2_REPO
#for when i had bashrc as main profile, now just use bash_profile since it is loaded by default on shell login
#source ~/.bashrc
eval "$(chef shell-init bash)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment