X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/d569f3f7ac829693addfdc8ed656e70d80d7d467..5b9a654a39e6b0e14c5b0bd61227931213f4fd3f:/base/.zsh/functions/Prompts/prompt_arrows_setup?ds=sidebyside diff --git a/base/.zsh/functions/Prompts/prompt_arrows_setup b/base/.zsh/functions/Prompts/prompt_arrows_setup index 9b935f1..08f3646 100644 --- a/base/.zsh/functions/Prompts/prompt_arrows_setup +++ b/base/.zsh/functions/Prompts/prompt_arrows_setup @@ -46,17 +46,19 @@ function prompt_arrows_setup() { p="${${SSH_CLIENT+$s}:-$p}" local clock="%F{$n}%T%f" dirvcs="%F{$d}"'${vcs_info_msg_0_:-%~}'"%f" + # XXX: linux only local battery=/sys/class/power_supply/BAT0/capacity [[ -e "$battery" ]] && clock+=" `cat $battery`%%" local vicol='%F{${${prompt_arrows_vimode:+'"$r"'}:-'"$c"'}}' + local hist="%F{$n}%h" case "$m" { 2line) - PROMPT="%f $clock $dirvcs"$'\n'"%F{$c}>>> " + PROMPT="%f $hist $clock $dirvcs"$'\n'"%F{$c}>>> " unset RPROMPT ;; right) RPROMPT="$dirvcs $clock" - PROMPT="%F{$c}>>> " + PROMPT="%F{$c}>>> $hist" ;; *) echo "Unknown prompt mode $m"