commit
c2166316ac
|
|
@ -1,45 +1,45 @@
|
|||
# Powerline Multiline Theme
|
||||
|
||||
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.
|
||||
A colorful multiline theme, where the first line shows information about your shell session (divided into two parts, left and right), and 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.
|
||||
**IMPORTANT:** This theme requires that [a font with the Powerline symbols](https://github.com/powerline/fonts) needs to be used in your terminal emulator, otherwise the prompt won't be displayed correctly, i.e. some of the additional icons and characters will be missing. Please follow your operating system's instructions to install one of the fonts from the above link and select it in your terminal emulator.
|
||||
|
||||
## Information provided
|
||||
## Provided Information
|
||||
|
||||
* Current path
|
||||
* Current username and hostname
|
||||
* An indicator when connected by SSH
|
||||
* An indicator when sudo has the credentials cached (see the sudo manpage for more info about this)
|
||||
* An indicator when `sudo` has the credentials cached (see the `sudo` manpage for more info about this)
|
||||
* An indicator when the current shell is inside the Vim editor
|
||||
* Battery charging status (depends on the battery plugin)
|
||||
* Repository status
|
||||
* The current Python enviroment (Virtualenv, venv, and Conda are supported) in use
|
||||
* The current Ruby enviroment (RVM) in use
|
||||
* Battery charging status (depends on the [../../plugins/available/battery.plugin.bash](battery plugin))
|
||||
* SCM Repository status (e.g. Git, SVN)
|
||||
* The current Python environment (Virtualenv, venv, and Conda are supported) in use
|
||||
* The current Ruby environment (RVM) in use
|
||||
* Last command exit code (only shown when the exit code is greater than 0)
|
||||
|
||||
## Configuration
|
||||
|
||||
This theme is pretty configurable, all the configuration is done by setting environment variables.
|
||||
|
||||
### User information
|
||||
### User Information
|
||||
|
||||
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:
|
||||
By default, the username and hostname are shown on the right hand side, but you can change this behavior by setting the value of the following variable:
|
||||
|
||||
POWERLINE_PROMPT_USER_INFO_MODE
|
||||
POWERLINE_PROMPT_USER_INFO_MODE="sudo"
|
||||
|
||||
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.
|
||||
For now, the only supported value is `sudo`, which hides the username and hostname, and shows an indicator when `sudo` has the credentials cached. Other values have no effect at this time.
|
||||
|
||||
### Clock format
|
||||
### Clock Format
|
||||
|
||||
By default, the current time is shown at the right side, you can change the format with the variable:
|
||||
By default, the current time is shown on the right hand side, you can change the format using the following variable:
|
||||
|
||||
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.
|
||||
The time/date is printed by the `date` command, so refer to its man page to change the format.
|
||||
|
||||
### Segment order
|
||||
### Segment Order
|
||||
|
||||
Both prompt sides can be "reordered", all the "segments" (every piece of information) can take any place, the current available segments are:
|
||||
The contents of both prompt sides can be "reordered", all the "segments" (every piece of information) can take any place. The currently available segments are:
|
||||
|
||||
* battery
|
||||
* clock
|
||||
|
|
@ -55,6 +55,4 @@ Two variables can be defined to set the order of the prompt segments:
|
|||
POWERLINE_LEFT_PROMPT="scm python_venv rvm cwd"
|
||||
POWERLINE_RIGHT_PROMPT="in_vim clock battery user_info"
|
||||
|
||||
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.
|
||||
|
||||
|
||||
The example values above are the current default values, but if you want to remove anything from the prompt, simply remove the "string" that represents the segment from the corresponding variable.
|
||||
|
|
|
|||
Loading…
Reference in New Issue