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
- Host: GitHub
- URL: https://github.com/joker/git_prompt
- Owner: Joker
- Created: 2020-05-25T20:06:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-30T15:53:12.000Z (over 2 years ago)
- Last Synced: 2025-04-09T14:21:40.538Z (about 1 year ago)
- Topics: bash, git, prompt, zsh
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple git prompt for bash/zsh
Git repository information inside a shell prompt.

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