Included time into Bash PS1 header: useful to understand when I called daily login apps.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 08 Sep 2022 12:26:25 +0300
changeset 1002 a9073ca0921b
parent 1001 b4df956c3d52
child 1003 66cfeaa7598e
Included time into Bash PS1 header: useful to understand when I called daily login apps.
.bashrc
--- a/.bashrc	Sun Jun 12 19:01:39 2022 +0300
+++ b/.bashrc	Thu Sep 08 12:26:25 2022 +0300
@@ -30,12 +30,12 @@
     ;;
 esac
 
-PS1='\n${_my_ruler}\r$?|\u@\h \w \nbash# '
+PS1='\n${_my_ruler}\r$?|\u@\h \A \w \nbash# '
 PS2='> '
 
 case "$TERM" in
   xterm*|eterm-color|screen|linux|mintty*|cygwin)
-    PS1=$'\n\e[34m\e[1m${_my_ruler}\r$?|\e[31m\u\e[35m@\h\e[0m\e[36m \w \n\[\e[1m\e[31m\]bash#\[\e[0m\] '
+    PS1=$'\n\e[34m\e[1m${_my_ruler}\r$?|\e[31m\u\e[35m@\h\e[0m\e[36m \A \w \n\[\e[1m\e[31m\]bash#\[\e[0m\] '
     PS2=$'\[\e[32m\]> \[\e[0m\]'
   ;;
 esac