Software developers spend a significant amount of time in Terminal (i.e. file systeming, giting, bash scripting).
The default mostly-white wall of text can be hard on the eyes and actually kind of difficult to read. Wouldn’t it be nice if you could more clearly view the terminal logs?
YES, so let’s make some changes that will increase producitivity and asthetics at the same time!
First, you need to learn a little about bash. Bash is a Unix shell and command language and it is what you see when you load Terminal on your Mac. We will be customizing your bash Profile.
The first step is to go to start Terminal, navigate to your home directory, and open .bash_profile in a text editor.
Second, you can customize the bash prompt to show full filepath, hide username, and show your current git branch name (if applicable). We also add a new line to seperate the prompt from the prior command.
Next, you can customize colors to better differentiate different bash info. ANSI colors are assigned to variables at the top of the bash script.