mirror of
https://github.com/pik4li/pure-bash-prompt.git
synced 2025-12-07 22:09:41 +01:00
A prompt with docker/git and diskspace analyzer written in pure bash
| assets | ||
| LICENSE | ||
| pure.bash | ||
| README.md | ||
a pure bash prompt
Pure bash prompt with git integration, docker compose project detection and diskspace analyzer direcly in pure bash
Inspired by krashikiworks/pure-prompt-bash
Preview
disk-analyzer:
Displays the available space in numbers. The icon shows, how much space is already taken
Coloring has values for
above 33%,above 66%,above 87%, andless
ENABLE_DISKSPACE=true
ENABLE_NERDFONTS=false
ENABLE_NERDFONTS=true
error-codes:
Does only show the error codes on error codes bigger than 0
ENABLE_ERROR_CODES=true
git-status:
ENABLE_GIT=true
docker-status:
ENABLE_DOCKER=true
Install
just clone this repository (or just copy pure.bash) anywhere, and add
source /path/to/pure.bash
to your .bashrc
settings
You can set some settings in the prompt file itself:
| key | default_value | properties |
|---|---|---|
ENABLE_DISKSPACE |
true |
Enables the diskspace widget |
ENABLE_DOCKER |
true |
Enables or disables the docker widget |
DOCKER_SANITIZE_NAME |
false |
Enables or disables the docker project name sanitization |
ENABLE_ERROR_CODES |
true |
Enables the error code display inline |
ENABLE_GIT |
true |
Enables or disables the git widget |
ENABLE_NERDFONTS |
true |
Enables or disables nerdfonts in all widgets |
ENABLE_SSH |
true |
Enables the ssh detection with hostname prefix for ssh sessions |
ENABLE_UPTIME |
false |
Enables the uptime widget |
ENABLE_YAZI |
true (when yazi is installed) |
Displays an indicator if inside a yazi spawned sub-shell |
INFO_LINE_ON_NEWLINE |
true |
Displays the information (diskspace, uptime, yazi) onto a separate line below the docker-line. Set to false to disable |
Uninstall
just remove what you downloaded, and delete source command from your .bashrc
License
MIT License. See LICENSE.




