Created
January 18, 2022 17:40
-
-
Save thumbarnirmal/808097912c8df21339e3edc9e41bb1e9 to your computer and use it in GitHub Desktop.
Customizations for my linux machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add battery percentage to terminal prompt | |
# https://phoenixnap.com/kb/change-bash-prompt-linux | |
# https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x279.html | |
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\$(cat /sys/class/power_supply/BAT1/capacity)%-\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment