I have a zsh function (see below) to that populates the document title based on information about the unix command that gets piped to bbedit
e.g. Here's my function:
logbb () {
ORIG_CMD=`tail -n1 $HISTFILE| awk -F'\;' '{print $2}'`
bbedit -t "${PWD##*/} — ${ORIG_CMD} — $(date)"
}
This becomes the BBEdit document title (edited out the actual data):
<base path> — <command and params> — <date and time>
Is there any way to capture this information in BBEdit to make it part of the document automatically? You can access the info get Get Info, but I'd like to be able to automatically grab it and make it a part of the document.
Thanks!
-Henry