Created
September 13, 2017 15:30
-
-
Save iiitmahesh/94eaaed1e35aae714301a888f4236f39 to your computer and use it in GitHub Desktop.
bash config osx
This file contains 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
#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