]> git.sev.monster Git - dotfiles.git/blobdiff - base/.zsh/functions/Prompts/prompt_arrows_setup
fix prompt battery cat
[dotfiles.git] / 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.051684 seconds and 4 git commands to generate.