Last active
June 8, 2022 05:09
-
-
Save philiprenich/793d7482861b833dd8cd1905a6426d0e to your computer and use it in GitHub Desktop.
Simple bash prompt with colors
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
# Outputs: | |
# [Jun 08 13:45] user:/cwd $ | |
# Date is dimmed white, user is bold green, colon is white, cwd is bold green, prompt is white | |
PS1="\[\e[02;37m\][\D{%b %d} \A]\[\e[00m\] \[\e[01;32m\]\u\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\] $" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment