mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02: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 {
|
} else {
|
||||||
row = append(row, entry.EndTime.Local().Sub(entry.StartTime.Local()).Round(time.Millisecond).String())
|
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))
|
row = append(row, fmt.Sprintf("%d", entry.ExitCode))
|
||||||
case "Command", "command":
|
case "Command", "command":
|
||||||
row = append(row, commandRenderer(entry.Command))
|
row = append(row, commandRenderer(entry.Command))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user