Running a command before running user input in ksh
1
vote
1
answer
26
views
I'm running Korn 93u+ and I want to echo the current time each time I enter a command. I currently just put the time in my PS1, but that's obviously flawed because if I leave the command line for some period of time I end up with a stale timestamp. I'd rather have an operation that executes _after_ I hit enter, e.g.
$ ls -a1
Running at 2025-01-08 14:25:30.
.
..
dummy_dir_1
dummy_dir_2
$
Is there a way to do that config-wise?
Asked by Yehuda
(331 rep)
Jan 8, 2025, 08:37 PM
Last activity: Jan 9, 2025, 12:08 AM
Last activity: Jan 9, 2025, 12:08 AM