mirror of
https://github.com/edu4rdshl/based.fish.git
synced 2026-07-17 23:24:46 +00:00
(feat): use -batch on sqlite
This commit is contained in:
parent
7b9142e3ba
commit
e323e57249
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue