Tools designed to share and improve bash history across sessions and nodes
- history-exporter: When run in a container it does not see commands executed on the host OS. Only the commands executed inside the container are picked up. This might be related to a file system and docker issue. Current the binary needs to be executed on the host OS. iovisor/bcc#2363
- history-exporter: The generated ebpf .o files are still being copied over from cilium/ebpf repo for now.
- history-search: Can run as a container but it might add too much complexity because of how the commands need to be executed within the current shell and not a subprocess.
This repo was structure was based off:
https://eli.thegreenplace.net/2019/simple-go-project-layout-with-modules/
The following describes the eBPF setup used:
- libbpf is used (https://github.com/libbpf?type=source)
- cilium/ebpf (https://github.com/cilium/ebpf/tree/master/examples)