sqlite-backed shell history
1

Configure Feed

Select the types of activity you want to include in your feed.

Go 82.7%
Nix 17.3%
4 1 0

Clone this repository

https://tangled.org/oppi.li/tortu https://tangled.org/did:plc:wqstj3k5tslmm246baaf3tpa
git@tangled.org:oppi.li/tortu git@tangled.org:did:plc:wqstj3k5tslmm246baaf3tpa

For self-hosted knots, clone URLs may differ based on your setup.



readme.txt
tortu
-----

sqlite backed shell history


usage
-----

if you use home-manager for nixos, tortu has a home-manager
module:

    home-manager.users.<name> = {
      imports = [
        ./home.nix
        inputs.tortu.homeManagerModules.default
      ];
    };


if not, just call eval the init script in your .bashrc:

    eval "$(tortu init)"


start by importing your existing bash history into tortu:

    tortu import


and then hit ctrl+r at your shell to trigger reverse search:

    > search history...
     1s vim flake.nix
     3m redis-server
     3m jj l
    35m jj show m
    36m jj git fetch
    39m cd
    40m vim readme.txt
      788 matches · ↑/↓ move · enter accept · esc cancel


hit tab/enter to accept the selection, hit enter again to
execute. the history database is stored in
~/.local/share/tortu. if upgrades break the DB, just delete
it and run the import command.


develop
-------

to build:

    go build -o tortu .