bash-command-timer icon indicating copy to clipboard operation
bash-command-timer copied to clipboard

Bash extension for printing execution time for each command.

Results 6 bash-command-timer issues
Sort by recently updated
recently updated
newest added

I want to time each commands in a bash script. It has no functions. Is it possible to use the bash-command-timer for this task? I tried it with no luck....

Ring a bell if a command was running for a long time. This helps not to forget about long running jobs left in a terminal on another desktop.

Add extra info to the print out so that it informs when the process began as well as when it ended, e.g.: ```bash [ 4s914 | Jun 03 04:33pm >...

Expected output for "echo $_" below is bar. sig@desktop2:~$ echo foo bar foo bar sig@desktop2:~$ echo $_ BCTPreCommand

``` [pasha@hubbitus ~]$ sleep 1.23 [ 1s232 | Feb 14 07:50PM ] [pasha@hubbitus ~]$ mc [pasha@hubbitus ~]$ sleep 1.23 [ 6s736 | Feb 14 07:50PM ] ``` I assume it...

To preserve the variable underscore (`$_`), can pass it as argument function in a trap DEBUG. _Originally posted by @NRZCode in https://github.com/jichu4n/bash-command-timer/issues/6#issuecomment-2300823123_ The PROMPT_COMMAND variable is an array