Skip to content

Instantly share code, notes, and snippets.

@iiitmahesh
Created September 13, 2017 15:30
Show Gist options
  • Save iiitmahesh/94eaaed1e35aae714301a888f4236f39 to your computer and use it in GitHub Desktop.
Save iiitmahesh/94eaaed1e35aae714301a888f4236f39 to your computer and use it in GitHub Desktop.
bash config osx
#DYNOMO DB
function dynamo(){
cd ~/Documents/Softwares/dynamodb_local
java -Djava.library.path=./DynamoDBLocal_lib/ -jar DynamoDBLocal.jar
}
# git tab completion (homebrew)
if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then
. `brew --prefix`/etc/bash_completion.d/git-completion.bash
fi
#GIT BRANCH DISPLAY
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
#NVM
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.shx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment