mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-27 01:08:53 +01:00
Add new short name for "ExitCode" - "$?" (#228)
This commit is contained in:
parent
a0dc68306b
commit
c45e5c0f55
@ -104,7 +104,7 @@ func BuildTableRow(ctx context.Context, columnNames []string, entry data.History
|
||||
} else {
|
||||
row = append(row, entry.EndTime.Local().Sub(entry.StartTime.Local()).Round(time.Millisecond).String())
|
||||
}
|
||||
case "Exit Code", "Exit_Code", "ExitCode", "exitcode":
|
||||
case "Exit Code", "Exit_Code", "ExitCode", "exitcode", "$?", "EC":
|
||||
row = append(row, fmt.Sprintf("%d", entry.ExitCode))
|
||||
case "Command", "command":
|
||||
row = append(row, commandRenderer(entry.Command))
|
||||
|
Loading…
Reference in New Issue
Block a user