-
Notifications
You must be signed in to change notification settings - Fork 29
Git
John Meow edited this page Aug 6, 2020
·
5 revisions
This module displays information about the current git repository. If you are not in a git repository, it is not shown. If the current branch is dirty, the segment is yellow/orange by default. The dirty color can be changed by providing an extra argument.
Icon Name | Description | Nerd Fonts | Unicode | ASCII |
---|---|---|---|---|
github | remote points to GitHub | |||
gitlab | remote points to GitLab | |||
bitbucket | remote points to Bitbucket | |||
git | remote does not point to any of the above domains | |||
stash | a stash | 📥 | # | |
ahead | you are a commit ahead of upstream | ↑ | > | |
behind | you are a commit behind upstream (requires a git fetch ) |
↓ | < | |
modified | the branch has been modified | ● | * | |
staged | a file has been staged | ✚ | + |
[[left]]
name = "git"
color.background = "green"
color.foreground = "black"
# "yellow" is the dirty color
args = ["yellow"]