While True Do - Bash Prompt
| A bash prompt that shows information, only if you really need them.
Features
Screenshot
The terminal emulator you can see here is Tilix (formerly known as terminix). Screenshot is taken by daniel-wtd.
Error Display
Shows a little, red "x" at the beginning of the prompt, if the last command was not successful or returns non-zero.
Git integration
The usage of git-prompt.sh is implemented and will be used, if git is installed. So you can see the git status in your prompt, when joining a git directory.
Coloring
Root is colored in red, systemusers in yellow and regular users in green.
Background Job Counter
Displays a background job counter (jobs), if there are background jobs.
Remote Affinity
When working locally, the prompt has no hostname. After ssh-ing into another host you can see the hostname in the prompt.
Requirements
Git Integration is only tested on Fedora based Systems, openSUSE, archlinux and Ubuntu.
- RedHat 7.x
- CentOS 7.x
- Fedora 23+
- openSUSE 42.2
- archlinux
Installation
You can run the installer as root for global installation or as a user for installation in your home directory.
- Please Download the release package from https://github.com/while-true-do/bash-prompt/releases
- Unpack it via
unzip
- Make the installer executable
chmod +x install.sh
- Run the installer
./install.sh
Dependencies
Git and git-completion is needed, if you want to use the git-prompt.
License
This work is licensed under a BSD License.
Contribute / Bugs
bug reports: https://github.com/while-true-do/bash-prompt/issues
contributers: https://github.com/while-true-do/bash-prompt/graphs/contributors
Author Information
blog: https://blog.while-true-do.org
github: https://github.com/daniel-wtd
contact: [email protected]