Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| { | |
| "name": "project-name", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "n/a", | |
| "scripts": { | |
| "serve": "gatsby develop -p 5000", | |
| "dev": "node $NODE_DEBUG_OPTION ./node_modules/.bin/gatsby develop -p 5000", | |
| } | |
| } |