Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
{ | |
"al": { "full": "alabama", "other": ["ala"] }, | |
"ak": { "full": "alaska", "other": ["alas"] }, | |
"az": { "full": "arizona", "other": ["ariz"] }, | |
"ar": { "full": "arkansas", "other": ["ark"] }, | |
"ca": { "full": "california", "other": ["calif", "cal"] }, | |
"co": { "full": "colorado", "other": ["colo", "col"] }, | |
"ct": { "full": "connecticut", "other": ["conn"] }, | |
"de": { "full": "delaware", "other": ["del"] }, | |
"dc": { "full": "district of columbia", "other": ["washington dc", "wash dc"] }, |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name you.server.com; |