diff options
author | Marc Coquand <marc@mccd.space> | 2024-07-18 15:44:00 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-07-18 15:44:00 -0500 |
commit | 7f64b5f4c4280e9d78c07c052f1af6563adfcd54 (patch) | |
tree | 8b5d6eff1714f352453b2eee3a7a91224ad6f70e | |
parent | 47958d0c59533805e05b793d0ca73d41d4ca7672 (diff) | |
download | bsd-7f64b5f4c4280e9d78c07c052f1af6563adfcd54.tar.gz bsd-7f64b5f4c4280e9d78c07c052f1af6563adfcd54.tar.bz2 bsd-7f64b5f4c4280e9d78c07c052f1af6563adfcd54.zip |
sh: prompt update + bat
Diffstat (limited to '')
-rw-r--r-- | shrc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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)" |