https://github.com/ostinelli/contextual-git-prompt
Display git information in OSX terminal's prompt.
https://github.com/ostinelli/contextual-git-prompt
Last synced: about 1 year ago
JSON representation
Display git information in OSX terminal's prompt.
- Host: GitHub
- URL: https://github.com/ostinelli/contextual-git-prompt
- Owner: ostinelli
- License: mit
- Created: 2014-08-26T21:35:31.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2019-07-16T12:26:01.000Z (almost 7 years ago)
- Last Synced: 2025-02-09T20:18:02.290Z (over 1 year ago)
- Language: Shell
- Size: 33.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Contextual Git Prompt
## Overview
Display git information in OSX terminal's prompt.

## Installation
The only needed file is `contextual-git-prompt.sh`, that needs to be sourced from your `~/.profile` or `~/.bash_profile`.
I generally have all my bash scripts into the `.bash` directory in my home directory, so I do:
```bash
$ mkdir ~/.bash
$ cd ~/.bash
```
Then I copy the `contextual-git-prompt.sh` file in there. Finally, I ensure that all of the `*.sh` files in `.bash` are sourced from my `~/.bash_profile`:
```bash
for file in ~/.bash/*.sh; do
[[ -r $file ]] && source $file;
done
```
Restart terminal to see the changes.