Updates README files for shlvl segment

This commit is contained in:
David Farrell
2019-11-01 22:16:14 -07:00
parent 8123b1c887
commit 224fc123dc
4 changed files with 8 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ A colorful theme, where shows a lot information about your shell session.
* Current path
* Current username and hostname
* Current time
* Current shell level
* 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 +62,7 @@ The contents of the prompt can be "reordered", all the "segments" (every piece o
* `user_info` - Current user
* `wd` - Working directory, like `cwd` but doesn't show the full folder
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
A variable can be defined to set the order of the prompt segments: