Use code-blocks in docs
This commit is contained in:
parent
7db8aa074f
commit
7be62ba563
|
@ -139,7 +139,9 @@ Terminal prompts
|
||||||
Bash prompt
|
Bash prompt
|
||||||
***********
|
***********
|
||||||
|
|
||||||
Add the following to your ``.bashrc``::
|
Add the following to your ``.bashrc``:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
function _update_ps1() {
|
function _update_ps1() {
|
||||||
export PS1="$(powerline-prompt)"
|
export PS1="$(powerline-prompt)"
|
||||||
|
@ -147,11 +149,12 @@ Add the following to your ``.bashrc``::
|
||||||
|
|
||||||
export PROMPT_COMMAND="_update_ps1"
|
export PROMPT_COMMAND="_update_ps1"
|
||||||
|
|
||||||
|
|
||||||
Zsh prompt
|
Zsh prompt
|
||||||
**********
|
**********
|
||||||
|
|
||||||
Add the following to your ``.zshrc``::
|
Add the following to your ``.zshrc``:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
export PS1=\`powerline-prompt\`
|
export PS1=\`powerline-prompt\`
|
||||||
|
|
Loading…
Reference in New Issue