Last active
February 4, 2020 23:35
-
-
Save mginnard/ed69b273632d2f263dd65501c432682b to your computer and use it in GitHub Desktop.
My Bash Prompt: Because everyone has their own favorite setup.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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