Skip to content

Instantly share code, notes, and snippets.

@Nimrodda
Last active January 13, 2018 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nimrodda/859452a60975031a21f1 to your computer and use it in GitHub Desktop.
Save Nimrodda/859452a60975031a21f1 to your computer and use it in GitHub Desktop.
Bash Profile with git autocompletion
export ANDROID_HOME="/Users/nimrod/Library/Android/sdk"
export ANDROID_NDK="/Users/nimrod/Library/Android/sdk/ndk-bundle"
export ANDROID_SDK_HOME=$ANDROID_HOME
export ANDROID_NDK_HOME=$ANDROID_NDK
export JAVA_HOME=`/usr/libexec/java_home`
#export STUDIO_JDK=`/usr/libexec/java_home -v 1.6`
export MAVEN_OPTS=-Djava.awt.headless=true
export GIT_SSL_NO_VERIFY=true
export PATH=$HOME/.fastlane/bin:/usr/local/git/bin:$PATH:~/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin
#export https_proxy=localhost:8888
#Aliases
alias ll='ls -la'
alias gs='git status -s'
alias log='git log --oneline'
alias cdd='cd ../../'
# Load in the git branch prompt script.
source ~/bin/git-prompt.sh
#Bash colors
#Usage: \[color\]
COLOR_GREEN='\e[0;32m'
COLOR_NONE='\e[0m'
#Bash prompt with git branch
export PS1="\u@\h:\w\[$COLOR_GREEN\]\$(__git_ps1)\[$COLOR_NONE\]$ "
if [ -f ~/bin/git-completion.bash ]; then
. ~/bin/git-completion.bash
fi
eval $(/usr/libexec/path_helper -s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment