mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 11:57:50 +02:00
Support a host: atom as an alias for the hostname: atom
This commit is contained in:
parent
a8d4e17b66
commit
fe93be79f4
@ -189,6 +189,8 @@ func parseAtomizedToken(token string) (string, interface{}, error) {
|
||||
switch field {
|
||||
case "user":
|
||||
return "(local_username = ?)", val, nil
|
||||
case "host":
|
||||
fallthrough
|
||||
case "hostname":
|
||||
return "(instr(hostname, ?) > 0)", val, nil
|
||||
case "cwd":
|
||||
|
Loading…
x
Reference in New Issue
Block a user