# How does it work? First the `PS1` prompt is printed in the terminal and it waits for a command. Once a command is typed and `Enter` is pressed, `PS0` is expanded. This runs the `move_cursor_to_start_of_ps1` function. This function moves the cursor to the beginning of the first line of the `PS1` prompt, overwrites the string `--:--` with the current time, then returns the cursor to its earlier position. Then the command executes.