3

I want to see the time to each command in my terminal.

When I do this command:

export PROMPT_COMMAND='echo -n "$(date +%H:%M:%S) "

after I close the terminal I need to input it again.

How can I make this permanent?

Zanna
  • 70,465
blackman
  • 143

1 Answers1

7

Just add this line to your ~/.bashrc:

PROMPT_COMMAND='echo -n "$(date +%H:%M:%S) "'

Then save the file and open a new terminal and it should work as expected.

terdon
  • 100,812