I would like to add the current time upon execution of a bash command. I would like it to be in the right hand site so not to be intrusive. The output I am looking for is:
batman@Batcave:~/grails$ ls -l
total 84
drwxr-xr-x 2 batman batman 4096 2011-02-16 09:54 bin
drwxr-xr-x 2 batman batman 4096 2011-02-16 08:24 scripts
drwxr-xr-x 9 batman batman 4096 2011-02-16 08:24 src
batman@Batcave:~/grails$ **10:46:06**
ideas on how to accomplish this??
Something similar, but not exactly, what you ask: add the following lines to your
~/.bashrc
The difference is that the time is shown on the previous line, not the current.
I think it should be difficult to write on the current line without interfering with the shell prompt and line editing.