From bbee157c71feafc21baf5c7f2238a8416a0439de Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 17 Apr 2024 13:59:09 +0200 Subject: [PATCH] added the date in my shell prompt This is useful to trace actions when investigating bugs --- home/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.bashrc b/home/.bashrc index 4524e21..0734f81 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -66,7 +66,7 @@ if [ -n "$force_color_prompt" ]; then fi if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + PS1=' \[\033[01;36m\]\D{%Y%m%d-%H:%M:%S}\[\033[00m\] ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi