Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 470 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 470 Bytes

Simple git prompt for bash/zsh

Git repository information inside a shell prompt.

git_prompt

Installation

cargo install --git https://github.com/Joker/git_prompt

or

make install

zsh

~/.zshrc

setopt PROMPT_SUBST
PROMPT=$'%n@%m %2~ \$(git_prompt zsh) $ '

bash

~/.bashrc

PS1='\u@\h \W $(git_prompt) \$ '