Skip to content

Simple git prompt for bash/zsh

Notifications You must be signed in to change notification settings

Joker/git_prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) \$ '