# Customize terminal prompt for bash

[https://mattmazur.com/2012/01/27/how-to-change-your-default-terminal-prompt-in-mac-os-x-lion/](https://mattmazur.com/2012/01/27/how-to-change-your-default-terminal-prompt-in-mac-os-x-lion/)

(Or in Finder, go to home directory (probably named 'briancasel'), then show hidden files (shift+command+.) then edit .bash\_profile in text edit, then put this:

```
export PS1=":\W $ "
```

...UPDATE JULY 2019: This is what my bash\_profile contains, which includes seeing the folder name and the git branch name:

```
export PATH=~/.composer/vendor/bin:$PATH
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PATH="/usr/local/sbin:$PATH"

parse_git_branch( ) {
 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1=':\W $(parse_git_branch) $ '
```
