Display root when shell is using escalated privileges
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user