Display root when shell is using escalated privileges

This commit is contained in:
Deon Spengler
2016-05-13 12:22:59 +02:00
parent 31f69c6221
commit a360392e3b

View File

@@ -70,7 +70,8 @@ prompt_pure_precmd() {
# git info
vcs_info
local prompt_pure_preprompt='\n%F{blue}\u250C\u2500[%~]%F{242}$vcs_info_msg_0_`prompt_pure_git_dirty` $prompt_pure_username%f %F{yellow}`prompt_pure_cmd_exec_time`%f'
#local prompt_pure_preprompt='\n%F{blue}\u250C\u2500[%~]%F{242}$vcs_info_msg_0_`prompt_pure_git_dirty` $prompt_pure_username%f %F{yellow}`prompt_pure_cmd_exec_time`%f'
local prompt_pure_preprompt='\n%F{blue}\u250C\u2500[%~]%F{242}\%(!. %n.)$vcs_info_msg_0_`prompt_pure_git_dirty` $prompt_pure_username%f %F{yellow}`prompt_pure_cmd_exec_time`%f'
print -P $prompt_pure_preprompt
# check async if there is anything to pull