summaryrefslogtreecommitdiff
path: root/man-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-07-19 12:19:37 +0800
committerJSDurand <mmemmew@gmail.com>2021-07-19 12:19:37 +0800
commit24c11301b8e06a696ca371eff4087d5e539504f5 (patch)
tree85326d7e0a621fc9808d34b3504250ce83ecfe21 /man-conf.el
parent2e6f5935b6254577a02d7c82509171f4b7e1ce50 (diff)
new: track time in eshell
Now eshell will display the elapsed time of the last command at the beginning of the prompt. * eshell-conf.el (eshell-current-command-start-time): the variable to track the start time of the commands. (eshell-prompt-time-string): this will be displayed at the prompt, if non-nil. (eshell-current-command-start): set an appropriate variable as the start time of the command. (eshell-current-command-stop): calculat the elapsed time since the last command started and convert that into a pretty string to display. (eshell-current-command-time-track): add hooks. (eshell-start-track-command-time): (eshell-stop-track-command-time): switches of the time-tracking mechanism. (#'eshell-emit-prompt): (durand-eshell-emit-prompt): advice the original function to take into account the time information. refactor: (eshell/marks): add some colors
Diffstat (limited to 'man-conf.el')
0 files changed, 0 insertions, 0 deletions