From e323e57249ccae1f8187ad35a827779d6bfa2bf8 Mon Sep 17 00:00:00 2001 From: Eduard Tolosa Date: Tue, 3 Jun 2025 17:05:24 -0500 Subject: [PATCH] (feat): use -batch on sqlite --- functions/__based_log.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/__based_log.fish b/functions/__based_log.fish index 0d6c492..074bd5f 100644 --- a/functions/__based_log.fish +++ b/functions/__based_log.fish @@ -16,7 +16,7 @@ function __based_log --on-event fish_preexec set cmd (string replace -a "'" "''" -- $cmd) set path (string replace -a "'" "''" -- $path) - sqlite3 $db " + sqlite3 -batch $db " INSERT INTO log (path, cmd, counter, ts) VALUES ('$path', '$cmd', 1, $ts) ON CONFLICT(path, cmd) DO UPDATE SET