3 ms·
Thanks, this looks great! How does the history know that the prefix (hostname, PID, date) is not part of the command though? I mean, I tested it and it works
by cassianoleal 4y ago
Thanks, this looks great!
How does the history know that the prefix (hostname, PID, date) is not part of the command though?
I mean, I tested it and it works as expected (without them) but I'm really curious about how it works.
- misnome 4y agoFor searching/expansion, it's a constant number of fields I use my own ctrl-r handler, which just runs `cut -d" " -f 4-`. Before that, I just used the standard history and used this as a comprehensive backup - grep, and seeing everything in context was valuable for me alone.