Copy this file next to your .bashrc
and add the following line at the end of this:
source ~/.bashrc.personal
-
Re-open your terminal and check the new bash prompt when you access to a repository, it should show the branch name and the tag [clean] if there is no changes.
-
From the parent directory that contains multiple repositories, simply execute the following command to check the status of all of them:
git-status
- In case you are in a location with a large directory path, execute the following command to trim this path to just the las directory name:
trim_dir_path