Skip to content

FranciscoBorges/git-prompt-for-zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Git prompt for zsh

A function to include git status information (current branch etc) in your zsh prompt.

Inspired by this blog post, and by Olivier Verdier's zsh-git-prompt, from which I took the UTF character used for untracked status.

Unlike https://github.com/olivierverdier/zsh-git-prompt this version does not use Python.

Usage

  • Source git-prompt.zsh from your ~/.zshrc config file,
  • configure your prompt, say
source local/zfunc/path/git-prompt.zsh
# your own prompt definition
PROMPT='%B%m%~%b$(git_prompt_info) %# '

About

A zsh prompt that shows git status information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages