https://github.com/delphinus/fish-git-info
Yet another fork of the git prompt in prezto for fish.
https://github.com/delphinus/fish-git-info
fish git
Last synced: about 2 months ago
JSON representation
Yet another fork of the git prompt in prezto for fish.
- Host: GitHub
- URL: https://github.com/delphinus/fish-git-info
- Owner: delphinus
- License: mit
- Created: 2020-05-16T00:37:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T11:10:42.000Z (about 6 years ago)
- Last Synced: 2025-03-03T04:14:35.017Z (over 1 year ago)
- Topics: fish, git
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fish-git-info

Yet another fork of the git prompt in [prezto][] for [fish][].
[prezto]: https://github.com/sorin-ionescu/prezto
[fish]: https://fishshell.com
## What's this?
This is a port of the git prompt from [prezto][]. It can indicate almost the
same number of features from the original one. And you can customize the format
freely.
## How to use
### with [fisher][] (recommended)
[fisher]: https://github.com/jorgebucaran/fisher
1. add this
```fish
fisher add delphinus/fish-git-info
```
2. (optional but **highly recommended**) add [fish-async-prompt][].
```fish
fisher add acomagu/fish-async-prompt
```
3. add to call this anywhere you like, such as in `fish-right-prompt`.
```fish
vim ~/.config/fish/functions/fish_right_prompt.fish
```
```fish
function fish_right_prompt
__git_info # <-- add this line
end
```
[fish-async-prompt]: https://github.com/acomagu/fish-async-prompt
### manual
1. clone this repo
2. link the script
```fish
ln -s /path/to/__git_info.fish ~/.config/fish/functions/__git_info.fish
```
3. add to call this anywhere you like, such as in `fish-right-prompt`. (same
above)