But this is empty for me. Might be my configuration, or other plugins I've loaded.
Googled for a quick bit, and switching to $history[$HISTCMD] solved it for me:
https://stackoverflow.com/a/25297732
Seems to be a good way to go about getting the last command, could provide a PR if wanted!
At least for me
last_command
is always empty. It should be read here: https://github.com/sobolevn/wakatime-zsh-plugin/blob/master/wakatime.plugin.zsh#L29But this is empty for me. Might be my configuration, or other plugins I've loaded. Googled for a quick bit, and switching to
$history[$HISTCMD]
solved it for me: https://stackoverflow.com/a/25297732Seems to be a good way to go about getting the last command, could provide a PR if wanted!