added battery to zsh theme

This commit is contained in:
Solomon Laing 2021-10-14 12:30:33 +10:30
parent 4535bdde73
commit 148c419463

View File

@ -31,7 +31,7 @@ local current_dir="%F{cyan}%~%f"
local git_branch='$(git_prompt_info)' local git_branch='$(git_prompt_info)'
local bat='$(battery_pct_prompt)' local bat='$(battery_pct_prompt)'
PROMPT="${user_host} ${current_dir} ${git_branch} PROMPT="${user_host} ${bat} ${current_dir} ${git_branch}
-$PR_PROMPT" -$PR_PROMPT"
RPROMPT="]${return_code} %*" RPROMPT="]${return_code} %*"