zsh-repo-theme
ohmyzsh theme which shows details git repo information.
How To Use
What you need to do is just put repo.zsh-theme
to ohmyzsh/custom/themes
or ohmyzsh/themes
- use symbolic link
# Open ZSH shell
git clone https://github.com/gkide/zsh-repo-theme.git
cd zsh-repo-theme
ln -s `pwd`/repo.zsh-theme $ZSH/custom/themes/repo.zsh-theme
Prompt Information
The prompt message for current working directory is not git repo, it will as
✘ ☻ ❄ user@host | working-directory | Xms $ .... «Yms»
✘
if last command error, then it shows up☻
if current user is root, then it shows up❄
if terminal has more jobs, then it shows upX
is for the theme refresh time(ms)Y
is for the user last command used time(ms)
The prompt message for current working directory is a git repo, it will as
╭─ ✘ ☻ ❄ user@host | working-directory | git-config-user-name<git-config-user-email>
╰─ repo-name § repo-branch(sha1) | ✔↑x↓x✚x✎x⍉x⚑x✖x | Xms $ .... «Yms»
✘
if last command error, then it shows up☻
if current user is root, then it shows up❄
if terminal has more jobs, then it shows upX
is for the theme refresh time(ms)Y
is for the user last command used time(ms)repo-name
is for current repo directory name, which is repo namerepo-branch
is for current working branchsha
is the SHA1 ofrepo-branch
✔
if repo is clean, then it shows up↑x
if local ahead of remote byx
commits, then it shows up↓x
if local behind of remote byx
commits, then it shows up✚x
if local has stagedx
files, then it shows up✎x
if local hasx
files changed but not staged, then it shows up⍉x
if local hasx
files which is not tracked, then it shows up⚑x
if local hasx
stash changes, then it shows up✖x
if local hasx
conflicts, then it shows up