From cb84081302fc7bbfc653da0340b30f41eb515a73 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Tue, 12 Mar 2024 03:39:44 +0700 Subject: [PATCH] feat: more atuin tricks --- docs/2023-07-01-pastebin.html | 10 +++++++++- posts/2023-07-01-pastebin.md | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/2023-07-01-pastebin.html b/docs/2023-07-01-pastebin.html index 6f322cf..a86d59e 100644 --- a/docs/2023-07-01-pastebin.html +++ b/docs/2023-07-01-pastebin.html @@ -427,7 +427,15 @@ rsync -avzP src/ dst from history where id not in (select max(id) from history - group by command); + group by command); + +delete +from history +where length(command) > 128; + +

Remove shell history:

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

diff --git a/posts/2023-07-01-pastebin.md b/posts/2023-07-01-pastebin.md index 99c61de..3b25841 100644 --- a/posts/2023-07-01-pastebin.md +++ b/posts/2023-07-01-pastebin.md @@ -305,6 +305,16 @@ 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)