"Git gets easier once you get the basic idea that branches are homeomorphic endofunctors mapping submanifolds of a Hilbert space." - Isaac Wolkerstorfer @agnoster
+ Once I started making a habit of opening Terminal, I began to appreciate the lightweight simplicity of using the command line. Terminal has some built-in themes, but as look-alike text commands stacked I was resorting to
clear, negating the history of previous commands.
+ It wasn't until taking the Udacity course "How to Use Git and GitHub" (that course has since been replaced with "Version Control with Git") that I learned Terminal could be further customized for more legible text and added features.
+ The following instructions are based on the deprecated Udacity course and will help make your Terminal more insightful with style!
- Download these files (since the files have a
.in front of them, they will be hidden in Finder, see step 2):
.git-prompt-sh(adds an asterisk to indicate change to branch)
.git-completion.bash(adds auto-complete for git commands)
.bash_profile(makes everything work)
- For steps 3 & 4, you can use mv in Terminal to move the files or unhide the files in Finder with this keyboard shortcut toggle
shift + command + ..
.git-completion.bashto your home directory.
- If you already have a file named
.bash_profilein your home directory, copy and paste the content from the downloaded
.bash_profileto the bottom of it, otherwise move the downloaded
.bash_profileto your home directory.
- Restart Terminal and enjoy the style!
.bash_profile, the line
export PS1=" "controls how the command prompt is displayed, so feel free to customize further and be sure to comment your favorite Terminal tips!