Last active
June 11, 2020 20:20
-
-
Save mvidaldp/e5022bee8802370d516b723d9a482aee to your computer and use it in GitHub Desktop.
Set root PS1 to [Day Month DayNumber HH:MM] root@host /path/ $ on /root/.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 1)\] \u\[$(tput setaf 2)\]@\[$(tput setaf 3)\]\h \[$(tput bold)\]\[$(tput setaf 4)\]\w\[$(tput bold)\]\[$(tput setaf 1)\] \\$\[$(tput sgr0)\] " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment