From: sev Date: Wed, 25 May 2022 17:58:39 +0000 (-0500) Subject: fix prompt battery cat X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/8b2d206d4a5a74d56eb05d54271e490ad190d4dd?ds=inline fix prompt battery cat --- 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" {