Skip to content

Instantly share code, notes, and snippets.

@mginnard
Last active February 4, 2020 23:35
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 mginnard/ed69b273632d2f263dd65501c432682b to your computer and use it in GitHub Desktop.
Save mginnard/ed69b273632d2f263dd65501c432682b to your computer and use it in GitHub Desktop.
My Bash Prompt: Because everyone has their own favorite setup.
# Begin Custom Bash Prompt
green=$(tput setaf 2)
blue=$(tput setaf 4)
yellow=$(tput setaf 3)
bold=$(tput bold)
red=$(tput setaf 1)
reset=$(tput sgr0)
source ~/.git-completion.sh
source ~/.git-prompt.sh
PS1="\[$yellow\]\n[\u] \w/\[$blue\]\$(__git_ps1)\n\[$reset\]$ "
# git-prompt: https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
# git-completion: https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
# End Custom Bash Prompt
# Aliases
alias sublime="open -a /Applications/Sublime\ Text.app"
alias h="heroku"
alias gst="git stt"
alias gco="git co"
alias gcob="git co -b"
alias gcom="git co master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment