From 57948260356dcd40d259650121b2b5e1e4d1da6d Mon Sep 17 00:00:00 2001 From: sev Date: Wed, 25 May 2022 12:58:39 -0500 Subject: [PATCH] fix prompt battery cat --- base/.zsh/functions/Prompts/prompt_arrows_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" { -- 2.47.0