summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-07-18 15:44:00 -0500
committerMarc Coquand <marc@mccd.space>2024-07-18 15:44:00 -0500
commit7f64b5f4c4280e9d78c07c052f1af6563adfcd54 (patch)
tree8b5d6eff1714f352453b2eee3a7a91224ad6f70e
parent47958d0c59533805e05b793d0ca73d41d4ca7672 (diff)
downloadbsd-7f64b5f4c4280e9d78c07c052f1af6563adfcd54.tar.gz
bsd-7f64b5f4c4280e9d78c07c052f1af6563adfcd54.tar.bz2
bsd-7f64b5f4c4280e9d78c07c052f1af6563adfcd54.zip
sh: prompt update + bat
Diffstat (limited to '')
-rw-r--r--shrc9
1 files changed, 7 insertions, 2 deletions
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)"