https://github.com/krzysiou/zsh-git-prompt-theme
An override of already existing zsh theme designed to help you work with git
https://github.com/krzysiou/zsh-git-prompt-theme
bash theme zsh zsh-configuration zsh-theme
Last synced: 3 months ago
JSON representation
An override of already existing zsh theme designed to help you work with git
- Host: GitHub
- URL: https://github.com/krzysiou/zsh-git-prompt-theme
- Owner: krzysiou
- Created: 2022-01-08T19:44:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-08T11:25:52.000Z (over 4 years ago)
- Last Synced: 2025-12-27T02:54:06.496Z (6 months ago)
- Topics: bash, theme, zsh, zsh-configuration, zsh-theme
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zsh-git-prompt-theme
It is my own spin-off of default zsh theme originally created by [Robby](https://github.com/robbyrussell).
I made some changes regarding directory path length and color scheme. However the main idea behind this override suddenly appeared after reading [this](https://gist.github.com/AMoreaux/fb8df10b0de1d89fea45d8da5e467a86). It is to make your experience with git much easier and pleasing by adding few more quality of life features similar to the default git branch name displayed next to the directory prompt.
## Installation
First of all you will need to acquire default version of zsh. Just follow the guide provided [here](https://github.com/ohmyzsh/ohmyzsh). After the installation simply enter ```~/.oh-my-zsh``` directory and locate ```custom``` folder.

In here you will be able to add your custom plugins and themes by placing them in according folders. Copy [theme file](gitprompt.zsh-theme) into the ```~/.oh-my-zsh/custom/themes``` directory. The only thing left to do is activate the theme by editing ```~/.zshrc``` file. Find the ```ZSH_THEME``` option located inside said file and change its value to ```"gitprompt"```. Restart your zsh client and enjoy the theme!
## Changes
The colors where changed to match the much more appealing to me green-ish look. The length of current directory prompt was also changed, now it fully displays current path to current location in opposition to original theme in which the path was displayed only by the name of current directory.

The biggest change that differs the default theme from my override regards the display of basic git info. First of all when you change files and save them in your IDE the prompt will display yellow ```!``` followed by a number indicating the combined amount of insertions and deletions in various files that you edited and saved on your local computer but have not yet added to the commit.

After you add those saved files to your commit the prompt changes to yellow ```+``` and a number that represents amount of files added to current commit.

Last feature that differs from default theme would be the indicator representing amount of commits ready to push. After commiting your changes and adding commit message the prompt will change to green ```✓``` with number beside it.

Now you can easily edit your code and keep track of current changes!