zsh prompt: username/host on left size
This commit is contained in:
parent
a88235e2b6
commit
2bb080e539
|
@ -69,7 +69,7 @@ prompt_pure_precmd() {
|
||||||
# git info
|
# git info
|
||||||
vcs_info
|
vcs_info
|
||||||
|
|
||||||
local prompt_pure_preprompt="%F{blue}%~%F{242}$vcs_info_msg_0_`prompt_pure_git_dirty`$prompt_pure_username%f%F{yellow}`prompt_pure_cmd_exec_time`%f"'$(vi_mode_prompt_info)'
|
local prompt_pure_preprompt="%F{blue}%~%F{242}$vcs_info_msg_0_`prompt_pure_git_dirty`%f%F{yellow}`prompt_pure_cmd_exec_time`%f"'$(vi_mode_prompt_info)'
|
||||||
# print -P $prompt_pure_preprompt
|
# print -P $prompt_pure_preprompt
|
||||||
RPROMPT=$prompt_pure_preprompt
|
RPROMPT=$prompt_pure_preprompt
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ prompt_pure_setup() {
|
||||||
# prompt turns red if the previous command didn't exit with 0
|
# prompt turns red if the previous command didn't exit with 0
|
||||||
N_MODE=" --NORMAL--"
|
N_MODE=" --NORMAL--"
|
||||||
I_MODE=""
|
I_MODE=""
|
||||||
PROMPT='%(?.%F{yellow}.%F{red})❯ %f'
|
PROMPT='$prompt_pure_username%(?.%F{yellow}.%F{red})❯ %f'
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_pure_setup "$@"
|
prompt_pure_setup "$@"
|
||||||
|
|
Loading…
Reference in a new issue