mirror of
https://github.com/powerline/powerline.git
synced 2025-07-22 21:35:14 +02:00
Use code-blocks in docs
This commit is contained in:
parent
7db8aa074f
commit
7be62ba563
@ -139,22 +139,25 @@ Terminal prompts
|
|||||||
Bash prompt
|
Bash prompt
|
||||||
***********
|
***********
|
||||||
|
|
||||||
Add the following to your ``.bashrc``::
|
Add the following to your ``.bashrc``:
|
||||||
|
|
||||||
function _update_ps1() {
|
.. code-block:: bash
|
||||||
export PS1="$(powerline-prompt)"
|
|
||||||
}
|
|
||||||
|
|
||||||
export PROMPT_COMMAND="_update_ps1"
|
function _update_ps1() {
|
||||||
|
export PS1="$(powerline-prompt)"
|
||||||
|
}
|
||||||
|
|
||||||
|
export PROMPT_COMMAND="_update_ps1"
|
||||||
|
|
||||||
Zsh prompt
|
Zsh prompt
|
||||||
**********
|
**********
|
||||||
|
|
||||||
Add the following to your ``.zshrc``::
|
Add the following to your ``.zshrc``:
|
||||||
|
|
||||||
setopt prompt_subst
|
.. code-block:: bash
|
||||||
export PS1=\`powerline-prompt\`
|
|
||||||
|
setopt prompt_subst
|
||||||
|
export PS1=\`powerline-prompt\`
|
||||||
|
|
||||||
Tmux statusline
|
Tmux statusline
|
||||||
^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^
|
||||||
|
Loading…
x
Reference in New Issue
Block a user