Skip to content

Instantly share code, notes, and snippets.

@oakley808
Created July 27, 2016 19:31
Show Gist options
  • Save oakley808/28cdd50661d21c6bc8e6909516d06a01 to your computer and use it in GitHub Desktop.
Save oakley808/28cdd50661d21c6bc8e6909516d06a01 to your computer and use it in GitHub Desktop.
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# AWS completions
complete -C '/usr/local/bin/aws_completer' aws
export PATH=/usr/local/aws/bin:$PATH
# Aliases
alias ll='ls -ahF'
alias lll='ls -ahlF'
# GIT_PS1_SHOWUPSTREAM="auto"
# GIT_PS1_SHOWCOLORHINTS="yes"
# source ~/.git-prompt.sh
# export PROMPT_COMMAND='__git_ps1 "\u@\h:\W" "\\\$ ";'
#
#
MAGENTA="\[\033[0;35m\]"
YELLOW="\[\033[0;33m\]"
BLUE="\[\033[34m\]"
LIGHT_GRAY="\[\033[0;37m\]"
CYAN="\[\033[0;36m\]"
GREEN="\[\033[0;32m\]"
GIT_PS1_SHOWDIRTYSTATE=true
export LS_OPTIONS='--color=auto'
export CLICOLOR='Yes'
export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD
export PS1=$LIGHT_GRAY"\u@\h"'$(
if [[ $(__git_ps1) =~ \*\)$ ]]
# a file has been modified but not added
then echo "'$YELLOW'"$(__git_ps1 " (%s)")
elif [[ $(__git_ps1) =~ \+\)$ ]]
# a file has been added, but not commited
then echo "'$MAGENTA'"$(__git_ps1 " (%s)")
# the state is clean, changes are commited
else echo "'$CYAN'"$(__git_ps1 " (%s)")
fi)'$BLUE" \w"$GREEN"\n$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment