diff --git a/docs/2023-06-25-useful-tools.html b/docs/2023-06-25-useful-tools.html index 763f50e..64495b6 100644 --- a/docs/2023-06-25-useful-tools.html +++ b/docs/2023-06-25-useful-tools.html @@ -232,13 +232,6 @@ >

-
  • -

    - https://github.com/atuinsh/atuin -

    -
  • Memory

    For fun

    -
    -

    - atuin -

    - -
    -

    Remove duplicated command:

    -
    -
    delete
    -from history
    -where id not in (select max(id)
    -                 from history
    -                 group by command);
    -
    -delete
    -from history
    -where length(command) > 128;
    -
    -

    Remove shell history:

    -
    -
    cat /dev/null > ~/.zsh_history
    -

    F2 diff --git a/posts/2023-06-25-useful-tools.md b/posts/2023-06-25-useful-tools.md index 4a0ee92..749a3d7 100644 --- a/posts/2023-06-25-useful-tools.md +++ b/posts/2023-06-25-useful-tools.md @@ -32,7 +32,6 @@ This just a raw list. - https://github.com/sharkdp/vivid - https://github.com/zellij-org/zellij - https://github.com/ajeetdsouza/zoxide -- https://github.com/atuinsh/atuin Memory @@ -51,6 +50,7 @@ Memory - https://github.com/charmbracelet/glow - https://github.com/dbrgn/tealdeer - https://github.com/GothenburgBitFactory/taskwarrior +- https://github.com/atuinsh/atuin For fun diff --git a/posts/2023-07-01-pastebin.md b/posts/2023-07-01-pastebin.md index 65926ce..b32852c 100644 --- a/posts/2023-07-01-pastebin.md +++ b/posts/2023-07-01-pastebin.md @@ -295,28 +295,6 @@ Be careful flags (need dry run if not sure): - `--delete`: delete files in **dst** if not exist in **src**, useful to sync dst with src -## [atuin](https://github.com/atuinsh/atuin) - -Remove duplicated command: - -```sql -delete -from history -where id not in (select max(id) - from history - group by command); - -delete -from history -where length(command) > 128; -``` - -Remove shell history: - -```sh -cat /dev/null > ~/.zsh_history -``` - ## [F2](https://github.com/ayoisaiah/f2) Rename: