

You’ll already see your newly color themed Bash prompt. This reloads your Bash configuration and makes the installed fonts available for configuration. You can automatically download and run the fancy-git installer script, using this terminal command:Īfterwards, close your terminal window and then reopen it.

It contains code snippets for reading out the CPU temperature. Feel free to use one of PragmaticLinux’ Git repositories for this. Other than that, you need a cloned Git repository to test that your fancy-git setup works. Otherwise you won’t be able to make commits.
#The git up install#
#The git up software#
When it comes to software packages, your system needs git and curl. For this article I decided on using Fedora, running as a virtual machine. Fancy-git works on all Linux distributions, so pick whichever you prefer. A little preview: What do you needįor starters you of course need a Linux system.
#The git up how to#
This tutorial shows you how to install fancy-git, for showing the name of the Git branch and its status in your Bash terminal prompt. On top of that, it can even show you when commits still need to be pushed to the remote origin. Furthermore, it colors the text and background of the branch name to indicate its status: All clean, changes detected and files staged and ready to commit. It adds the name of the Git branch that you work on, to the Bash prompt. I catch myself typing git status often, just to see what branch I am on. When performing these operations, it’s easy to loose track of the branch you are working on. More often in a feature branch, which then needs to be merged back into the main branch. Consequently, I work a lot with Git in the terminal. I estimate that about ninety percent of the software development projects that I work on, use the Git version control system. I personally chose the direction of working with both Git and SVN in the terminal.įast forward a few years to today. That leaves you with two options: Either learn to work with Git and SVN directly in the terminal or find a good GUI tool for Linux. Under Linux, no fully functional ports of these tools exist, unfortunately. When developing software under Windows, I got used to convenient tools such as TortoiseGit and TortoiseSVN, for working with version control repositories.

Most importantly, it shows the name of your Git branch in your Bash terminal prompt. It makes it possible to theme your Bash terminal prompt in a Git specific way. There’s got to be an easier way, right? Luckily there is: fancy-git. Okay.Catch yourself typing git status a lot? Yeah, me too.
