Skip to content

Instantly share code, notes, and snippets.

@amcooper
Created October 26, 2016 03:15
Show Gist options
  • Save amcooper/38c42dbe998670ec12773e538bdc07f0 to your computer and use it in GitHub Desktop.
Save amcooper/38c42dbe998670ec12773e538bdc07f0 to your computer and use it in GitHub Desktop.
# My own scripts
export PATH="~/bin:$PATH"
### RBENV
export PATH="$HOME/.rbenv/bin:$PATH"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
alias l='ls -alh'
export GIT_MERGE_AUTOEDIT=no
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
### Android
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
export PATH="/usr/local/gradle-2.10/bin:$PATH"
export ANDROID_HOME="$HOME/Library/Android/sdk"
# =================
# Sourced Scripts
# =================
# # Builds the prompt with git branch notifications.
if [ -f ~/.bash_prompt.sh ]; then
source ~/.bash_prompt.sh
fi
# A welcome prompt with stats for sanity checks
if [ -f ~/.welcome_prompt.sh ]; then
source ~/.welcome_prompt.sh
fi
# bash/zsh completion support for core Git.
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
# # enable the git bash completion commands
source ~/.git-completion
# # enable git unstaged indicators - set to a non-empty value
GIT_PS1_SHOWDIRTYSTATE="."
# enable showing of untracked files - set to a non-empty value
GIT_PS1_SHOWUNTRACKEDFILES="."
# enable stash checking - set to a non-empty value
GIT_PS1_SHOWSTASHSTATE="."
# enable showing of HEAD vs its upstream
GIT_PS1_SHOWUPSTREAM="auto"
BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
LIME_YELLOW=$(tput setaf 190)
POWDER_BLUE=$(tput setaf 153)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
BRIGHT=$(tput bold)
NORMAL=$(tput sgr0)
BLINK=$(tput blink)
REVERSE=$(tput smso)
UNDERLINE=$(tput smul)
# return the prompt prefix for the second line
# function set_prefix {
# BRANCH=`__git_ps1`
# if [[ -z $BRANCH ]]; then
# echo "${NORMAL}o"
# else
# echo "${UNDERLINE}+"
# fi
# }
# # and here's one similar to Paul Irish's famous prompt ... not sure if this is the way he does it, but it works <img src="http://digitalformula.net/wp-includes/images/smilies/simple-smile.png" alt=":)" class="wp-smiley" style="height: 1em; max-height: 1em;" scale="0">
# # 33[s = save cursor position
# # 33[u = restore cursor position
# PS1='${MAGENTA}\u${WHITE} in ${GREEN}\w${WHITE}${MAGENTA}`__git_ps1 " on %s"`${WHITE}\r\n`set_prefix`${NORMAL}${CYAN}\033[s\033[60C (`date "+%a, %b %d"`)\033[u${WHITE} '
# This line appears in the conditional in line 3:
# eval "$(rbenv init -)"
export OMDB_SECRET=mysecret
# PostgreSQL
export PGDATA="/usr/local/var/postgres"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment