Skip to content

Instantly share code, notes, and snippets.

@D00MFist
Created April 3, 2019 21:16
Show Gist options
  • Save D00MFist/34cb3b16497f14ce88bbb0a00162aaf9 to your computer and use it in GitHub Desktop.
Save D00MFist/34cb3b16497f14ce88bbb0a00162aaf9 to your computer and use it in GitHub Desktop.
.bashrc setting to add date and time stamp
#add date & time stamp
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\] [\D{%F %T %z}] \[\03$
else
PS1=[\D{%F %T %z}] \w # '
fi
unset color_prompt force_color_prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment