Last active
February 19, 2024 15:54
-
-
Save d-faure/41f48c0e0aa89ae9d3802ffda74c9f94 to your computer and use it in GitHub Desktop.
Bash prompt with screen info
This file contains hidden or 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
# fancy (magenta + green + blue) | |
PS1='${STY+\[\e[1;35m\](${STY#[0-9]*.})\[\e[0m\] }\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\] \$ ' | |
# fancy (magenta + red + blue) | |
PS1='${STY+\[\e[1;35m\](${STY#[0-9]*.})\[\e[0m\] }\[\e[1;31m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\] \$ ' | |
# regular | |
PS1='${STY+(${STY#[0-9]*.}) }\u@\h:\w \$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment