mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-17 10:21:30 +02:00
Support queries as part of the export command + more info sent to the banner endpoint
This commit is contained in:
@ -196,7 +196,7 @@ func parseAtomizedToken(token string) (string, interface{}, error) {
|
||||
return "(instr(hostname, ?) > 0)", val, nil
|
||||
case "cwd":
|
||||
// TODO: Can I make this support querying via ~/ too?
|
||||
return "(instr(current_working_directory, ?) > 0)", val, nil
|
||||
return "(instr(current_working_directory, ?) > 0)", strings.TrimSuffix(val, "/"), nil
|
||||
case "exit_code":
|
||||
return "(exit_code = ?)", val, nil
|
||||
case "before":
|
||||
|
Reference in New Issue
Block a user