]> git.sev.monster Git - dotfiles.git/commitdiff
fix prompt battery cat
authorsev <git@sev.monster>
Wed, 25 May 2022 17:58:39 +0000 (12:58 -0500)
committersev <git@sev.monster>
Fri, 5 Apr 2024 21:27:40 +0000 (16:27 -0500)
base/.zsh/functions/Prompts/prompt_arrows_setup

index b026822d9fcaeb60900f0ca618876b2803ca99d6..3fdba6c40ae6aa353590cc917a698b02c502ee0e 100644 (file)
@@ -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" {
This page took 0.034967 seconds and 4 git commands to generate.