I spend a lot of time in Terminal so it’s important to me that it looks great and displays relevant information. Today I’ll take you through my configuration.

Bash profile preview

Color Scheme and Font

I chose to go with the SMYCK color scheme. It makes use of some very nice hexes and is a nice dark theme. Once that’s installed I configured the background a little different.

Bash profile background configuration

As for my font face I use Menlo regular, size 14. I can’t remember if that’s the default terminal font, but it ships with MacOS.

Git Aware Prompt

Next I set up git aware prompt which is a nice little package that indicates what branch I’m in and if the directory has uncommited changes. It also makes it super easy for us to use colors in our PS1.

Putting it all together

Once I had the git aware prompt and terminal window configured I opened my ~/.bash_profile and used the PS1 line shown below.

# Git branch / uncommited indicator
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source "${GITAWAREPROMPT}/main.sh"

# PS1
# [username][directory](branch)[uncommited?]
export PS1="\u\[$txtgrn\][\W]\[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "