From 7f64b5f4c4280e9d78c07c052f1af6563adfcd54 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Thu, 18 Jul 2024 15:44:00 -0500 Subject: sh: prompt update + bat --- shrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'shrc') diff --git a/shrc b/shrc index 01dd767..f4e9f11 100644 --- a/shrc +++ b/shrc @@ -8,11 +8,16 @@ alias fd="NO_COLOR=1 fdfind" alias de='eval "$(direnv export bash)"' alias f-commit="fossil commit && fossil git export" alias jrnl='stitch -t :journal:' -alias bat='envstat -d acpibat0 | grep 'charge:' | awk "{print $6}"' + +bat() +{ + BAT=$(envstat -d acpibat0 | grep 'charge:' | awk '{print $6}') + echo $BAT +} set -o emacs set -o promptcmds set -o tabcomplete -PS1="${PWD##*/} $PS1" +PS1='$(id -u) ${PWD##*/} ' eval "$(zoxide init posix --hook prompt)" -- cgit v1.2.3