Skip to content

Instantly share code, notes, and snippets.

@iiitmahesh
Created September 13, 2017 15:30
Show Gist options
  • Select an option

  • Save iiitmahesh/94eaaed1e35aae714301a888f4236f39 to your computer and use it in GitHub Desktop.

Select an option

Save iiitmahesh/94eaaed1e35aae714301a888f4236f39 to your computer and use it in GitHub Desktop.

Revisions

  1. iiitmahesh created this gist Sep 13, 2017.
    20 changes: 20 additions & 0 deletions bash config osx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #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