Fish v2.X has always used $CMD_DURATION as the variable containing the execution time of the last command. Fish v3.X appears to be changing it to $cmd_duration.
This change makes exec_time compatible with either of the above variables.
Motivation and Context
Fixes #65
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Screenshots (if appropriate):
How Has This Been Tested?
[x] I have tested using MacOS
[ ] I have tested using Linux
Checklist:
[x] I have checked that no other PR duplicates mine
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Fish v2.X has always used
$CMD_DURATION
as the variable containing the execution time of the last command. Fish v3.X appears to be changing it to$cmd_duration
.This change makes
exec_time
compatible with either of the above variables.Motivation and Context
Fixes #65
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Checklist: