commit b2a7a3f7be7859c591784b57334bd20e3087f030
parent 39a75ba805d657e2faa360e018e8e3b450ef34a9
Author: Alex Balgavy <alex@balgavy.eu>
Date: Fri, 29 Jan 2021 10:33:28 +0100
shell: move p10k exit code to the left
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/shell/p10k-dark.zsh b/shell/p10k-dark.zsh
@@ -40,6 +40,7 @@
dir # current directory
vcs # git status
nest_level
+ status # exit code of the last command
# prompt_char # prompt symbol
)
@@ -48,7 +49,6 @@
# automatically hidden when the input line reaches it. Right prompt above the
# last prompt line gets hidden if it would overlap with left prompt.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
- status # exit code of the last command
command_execution_time # duration of the last command
background_jobs # presence of background jobs
# direnv # direnv status (https://direnv.net/)
diff --git a/shell/p10k-light.zsh b/shell/p10k-light.zsh
@@ -39,6 +39,7 @@
dir # current directory
vcs # git status
nest_level
+ status # exit code of the last command
prompt_char # prompt symbol
)
@@ -47,7 +48,6 @@
# automatically hidden when the input line reaches it. Right prompt above the
# last prompt line gets hidden if it would overlap with left prompt.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
- status # exit code of the last command
command_execution_time # duration of the last command
background_jobs # presence of background jobs
direnv # direnv status (https://direnv.net/)
@@ -481,7 +481,7 @@
# Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as
# it will signify error by turning red.
- typeset -g POWERLEVEL9K_STATUS_ERROR=false
+ typeset -g POWERLEVEL9K_STATUS_ERROR=true
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=1
typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘'