Last active
June 11, 2020 20:19
-
-
Save mvidaldp/8cd6260a80b8243e2a970b71cf01d4a0 to your computer and use it in GitHub Desktop.
Set user PS1 to [Day Month DayNumber HH:MM] user@host ~ $ on ~/.bashrc
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
# assuming you have ncurses installed on your system | |
PS1="\[$(tput setaf 6)\][\d \A]\[$(tput bold)\]\[$(tput setaf 2)\] \u\[$(tput setaf 0)\]@\[$(tput setaf 3)\]\h \[$(tput setaf 4)\]\w\[$(tput bold)\]\[$(tput setaf 2)\] \\$\[$(tput sgr0)\] " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment