README: fix missing guard around liquidprompt for bashrc instructions

Fixes https://github.com/nojhan/liquidprompt/issues/291
This commit is contained in:
Olivier Mengué 2014-12-04 23:54:39 +01:00
parent cfae93fb30
commit 409b104837

View File

@ -92,10 +92,13 @@ git clone https://github.com/nojhan/liquidprompt.git
source liquidprompt/liquidprompt source liquidprompt/liquidprompt
``` ```
To use it every time you start a shell add the following line to your To use it every time you start a shell add the following lines to your
`.bashrc` (if you use bash) or `.zshrc` (if you use zsh): `.bashrc` (if you use bash) or `.zshrc` (if you use zsh):
`source ~/liquidprompt/liquidprompt` ```
# Load Liquid Prompt only in interactive shells, not from a script or from scp
[[ $- = *i* ]] && source ~/liquidprompt/liquidprompt
```
Next up is the configuration, you can skip this step if you already like the defaults: Next up is the configuration, you can skip this step if you already like the defaults: