YiNNx / cmd-wrapped

👩‍💻 A CLI Tool for Command Line Insights
https://crates.io/crates/cmd-wrapped
MIT License
1.01k stars 27 forks source link

Add support for atuin #6

Closed kang8 closed 9 months ago

kang8 commented 10 months ago

What is atuin?

atuin is a moder shell history tool. As described in its README:

It replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server.

Why need to support it?

I use atuin everyday, and use it to sycnhronize history on company and personal computers. Add support for atuin would make it easier for me to review my usage of terminal history over the past year.

Specific details

Specific details about support atuin, adding the option atuin to -s will to fine.

# specifying the shell or shell history tool [zsh/bash/atuin] 
cargo run -- -s atuin

As for obtaining the history list of atuin, can use the following command:

atuin history list --format "{time}:{command}"
2024-01-05 09:53:57:gs
2024-01-05 09:55:49:ga
2024-01-05 09:55:50:gcn!
2024-01-05 09:55:51:gpf
2024-01-06 02:58:02:python3
2024-01-06 12:08:57:navi
2024-01-06 12:25:09:atuin history list --format "{time}:{command}"