Adds history + command line number to powerline themes

This commit is contained in:
David Farrell
2019-11-02 00:07:59 -07:00
parent 9b7b33d375
commit ee5e1b63bc
6 changed files with 30 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ A colorful theme, where shows a lot information about your shell session.
* Current time
* Current shell level
* Current dirstack level (`pushd` / `popd`)
* Current history number
* Current command number
* 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 the current shell is inside the Vim editor
@@ -61,6 +63,8 @@ The contents of the prompt can be "reordered", all the "segments" (every piece o
hierarchy, only the directory you're currently in.
* `shlvl` - Show the current shell level (based on `SHLVL` environment variable), but only if you are not in root shell
* `dirstack` - Show the current dirstack level (based on `DIRSTACK` environment variable), but only if the stack is not empty
* `history_number` - Show current history number
* `command_number` - Show current command number
A variable can be defined to set the order of the prompt segments: