Just a prompt for ZSH. The right prompt is asynchronous, so it work fine even on large repositories.
It is reincarnation of my bureau theme for oh-my-zsh. I created it when I stopped using oh-my-zsh.
It shows on the left:
- user name,
- host name,
- current path.
On the right:
- current time,
- current git branch (called test on screenshot),
- staged and unstaged files (green and red bullets),
- current action (rebase or merge).
Add following string to your .zshrc
:
source /path/to/prompt_bureau_setup.zsh [color1] [color2] [color3]
Colors are optional. If you pass only one color, it will be used for username, hostname and current branch. If you pass two colors, the first will be used for username and branch, and the second for hostname. If you pass three colors, it will be used for username, hostname and branch accordingly.