Skip to content

Instantly share code, notes, and snippets.

@mvidaldp
Last active June 11, 2020 20:20
Show Gist options
  • Save mvidaldp/e5022bee8802370d516b723d9a482aee to your computer and use it in GitHub Desktop.
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
# 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