Update powerline-multiline README.md

pull/605/head
Eduardo Bellido Bellido 2016-01-27 01:27:11 +01:00
parent 6d4923aca8
commit 8bee21e428
1 changed files with 14 additions and 17 deletions

View File

@ -2,6 +2,8 @@
Colorfull multiline theme, the first line shows information about your shell session (divided into two parts, left and right), the second one is where the shell commands are introduced.
**IMPORTANT:** This theme has a requirement, [a font with the Powerline symbols](https://github.com/powerline/fonts) need tu be used in your terminal emulator, otherwise, the prompt won't be displayed correctly.
## Information provided
* Current path
@ -23,7 +25,7 @@ This theme is pretty configurable, all the configuration is done by setting envi
By default, the username and hostname are shown at the right side, but you can change this behavior setting the value of the following variable:
THEME_PROMPT_USER_INFO_MODE
POWERLINE_PROMPT_USER_INFO_MODE
for now, the only supported value is `sudo`, that hides the username and hostname, and shows an indicator when the sudo has the credentials cached. Any other value has no effect.
@ -31,33 +33,28 @@ for now, the only supported value is `sudo`, that hides the username and hostnam
By default, the current time is shown at the right side, you can change the format with the variable:
THEME_PROMPT_CLOCK_FORMAT="%H:%M:%S"
POWERLINE_PROMPT_CLOCK_FORMAT="%H:%M:%S"
the date is printed by the `date` command, so refer to its man page to change the format.
### Segment order
Both prompt sides can be "reordered", all the "segments" (every piece of information) can take any place, the only restriction (for now), is that some segments only can be placed at left, and others only at right.
Both prompt sides can be "reordered", all the "segments" (every piece of information) can take any place, the current available segments are:
Current available left "segments":
* scm
* virtualenv
* rvm
* cwd
Current available right "segments":
* in_vim
* clock
* battery
* clock
* cwd
* in_vim
* python_venv
* rvm
* scm
* user_info
Two variables can be defined to set the order of the prompt segments:
THEME_LEFT_SEGMENTS="scm virtualenv rvm cwd"
THEME_RIGHT_SEGMENTS="in_vim clock battery user_info"
POWERLINE_LEFT_PROMPT="scm python_venv rvm cwd"
POWERLINE_RIGHT_PROMPT="in_vim clock battery user_info"
if you want to remove something else from the prompt, simply remove the "string" that represents the segment from the corresponding variable.
the example values are the defaults, but if you want to remove something else from the prompt, simply remove the "string" that represents the segment from the corresponding variable.