prezto icon indicating copy to clipboard operation
prezto copied to clipboard

Improve history plugin EXTENDED_HISTORY

Open atsepkov opened this issue 5 years ago • 0 comments

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

atsepkov avatar May 10 '19 02:05 atsepkov