Created
April 3, 2019 21:16
-
-
Save D00MFist/34cb3b16497f14ce88bbb0a00162aaf9 to your computer and use it in GitHub Desktop.
.bashrc setting to add date and time stamp
This file contains 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
#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