Skip to content

Commit

Permalink
Add bash-completion to installation instructions (lyze#17)
Browse files Browse the repository at this point in the history
* Add bash-completion to installation instructions.

On your [reply on stackoverflow](http://stackoverflow.com/a/21927083/2460936) you've mentioned the need to install `bash-completion` so I thought it would be great to have it on the installation instructions for people that hit this page from places other than the StackOverflow.

* Indicate that installing bash completion is optional
  • Loading branch information
tirolo authored and lyze committed Nov 27, 2016
1 parent fda18e3 commit c903f4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -8,15 +8,15 @@ prompt. It replicates the prompt status from the Windows PowerShell module

Installation Instructions
-------------------------

1. Copy this file to somewhere (e.g. `~/git-prompt.sh`).
2. Add the following line to your `~/.bashrc`. (You may need to update
1. _Optional._ [Install bash-completion](https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion).
2. Copy this file to somewhere (e.g., `~/git-prompt.sh`).
3. Add the following line to your `~/.bashrc`. (You may need to update
your `~/.bash_profile` to source your `~/.bashrc`, or you can just modify
`~/.bash_profile` directly.)

source ~/git-prompt.sh

3. If you are using `bash`, you should call `__posh_git_ps1` in your
4. If you are using `bash`, you should call `__posh_git_ps1` in your
`PROMPT_COMMAND` variable. The function `__posh_git_ps1` takes two
parameters as in `__posh_git_ps1 <string_to_prepend> <string_to_append>`.
This function updates `PS1` accordingly. For example, the following
Expand Down

0 comments on commit c903f4b

Please sign in to comment.