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?
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?
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.