zsh: prompt: complete internal redesign + improvements
The prompt now no longer requires "setopt promptsubst" and even has
a bit more functionality:
- show exitcode if not equal zero
- underlined hostname if remote-connected via ssh
- extra prompt symbol for root and different color username
- improved battery status (color + charge detection)
Furthermore time and username@hostname have been swapped.
This commit is contained in:
parent
cb93e83215
commit
2b7107a84a
2 changed files with 116 additions and 59 deletions
|
|
@ -34,9 +34,5 @@ unsetopt menu_complete # do not autoselect the first completion entry
|
|||
# setopt correct # spelling correction for commands
|
||||
# setopt correctall # spelling correction for arguments
|
||||
|
||||
# ===== Prompt
|
||||
setopt prompt_subst # Enable parameter expansion, command substitution, and arithmetic expansion in the prompt
|
||||
setopt transient_rprompt # only show the rprompt on the current prompt
|
||||
|
||||
# ===== Scripts and Functions
|
||||
setopt multios # perform implicit tees or cats when multiple redirections are attempted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue