Skip to content

Instantly share code, notes, and snippets.

@thumbarnirmal
Created January 18, 2022 17:40
Show Gist options
  • Save thumbarnirmal/808097912c8df21339e3edc9e41bb1e9 to your computer and use it in GitHub Desktop.
Save thumbarnirmal/808097912c8df21339e3edc9e41bb1e9 to your computer and use it in GitHub Desktop.
Customizations for my linux machine
# 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