|
|
|
@ -107,14 +107,13 @@ fi |
|
|
|
- Clone this repository to your home directory. |
|
|
|
- Clone this repository to your home directory. |
|
|
|
|
|
|
|
|
|
|
|
```sh |
|
|
|
```sh |
|
|
|
cd ~ |
|
|
|
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1 |
|
|
|
git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt --depth=1 |
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
Add to the `~/.bashrc`: |
|
|
|
Add to the `~/.bashrc`: |
|
|
|
``` |
|
|
|
``` |
|
|
|
GIT_PROMPT_ONLY_IN_REPO=1 |
|
|
|
GIT_PROMPT_ONLY_IN_REPO=1 |
|
|
|
source ~/.bash-git-prompt/gitprompt.sh |
|
|
|
source ~/.bash-git-prompt/gitprompt.sh |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### install for the fish shell |
|
|
|
### install for the fish shell |
|
|
|
|