Skip to content

Instantly share code, notes, and snippets.

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