X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/c7e3e126ca2bfe463d344260b73b8c044e203ea0..57948260356dcd40d259650121b2b5e1e4d1da6d:/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 b026822..3fdba6c 100644 --- a/base/.zsh/functions/Prompts/prompt_arrows_setup +++ b/base/.zsh/functions/Prompts/prompt_arrows_setup @@ -53,7 +53,7 @@ function prompt_arrows_setup() { 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)%%' + [[ -e "$battery" ]] && clock+=' $(cat "'"$battery"'")%%' local vicol='%F{${${prompt_arrows_vimode:+'"$r"'}:-'"$c"'}}' local hist="%F{$n}%h" case "$m" {