larkery / zsh-histdb

A slightly better history for zsh
MIT License
1.27k stars 75 forks source link

Global SQLite config breaks histdb #141

Open atombender opened 3 months ago

atombender commented 3 months ago

Having .mode box in ~/.sqliterc breaks histdb:

/Users/alex/.zsh/zsh-histdb/histdb-migrate:8: bad math expression: illegal character: ^"
Parse error near line 10: near "1": syntax error
  ──────────────┐ │ 1+max(session) │ ├──

My full ~/.sqliterc:

.headers on
.mode box
.timer on

I believe you can avoid this by executing SQLite with -init:

$ sqlite -init /dev/null
-- Loading resources from /dev/null
SQLite version 3.46.0 2024-05-23 13:25:27
Enter ".help" for usage hints.
sqlite>