prezto
prezto copied to clipboard
Improve history plugin EXTENDED_HISTORY
Description
Improve EXTENDED_HISTORY flag for history plugin to also log directory from which the command was executed ($PWD). This is especially useful for one-off scripts and commands that work differently depending on directory executed from. For example, let's say I wrote a one-off script for parsing a bunch of files and generating some curated output. It worked great, I forgot about it, and months later I needed to rerun it for a new set of files. Problem is, by that time I forgot how to use it, and this script assumed a specific running directory, which I'm unable to get from the regular history alone.
Expected behavior
Change logging format to: starttime;duration;$PWD;command
Actual behavior
Current logging format: starttime;duration;command
Steps to Reproduce
N/A
Versions
N/A