An open API service indexing awesome lists of open source software.

https://github.com/joker/git_prompt

Simple git prompt for bash/zsh
https://github.com/joker/git_prompt

bash git prompt zsh

Last synced: 2 months ago
JSON representation

Simple git prompt for bash/zsh

Awesome Lists containing this project

README

          

# Simple git prompt for bash/zsh

Git repository information inside a shell prompt.

![git_prompt](https://repository-images.githubusercontent.com/266870139/b26c1300-2903-11eb-94cc-c2d2a5cc6592)

## Installation

```console
cargo install --git https://github.com/Joker/git_prompt
```
or
```console
make install
```

### zsh

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

### bash

`~/.bashrc`
```
PS1='\u@\h \W $(git_prompt) \$ '
```