Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global SQLite config breaks histdb #141

Open
atombender opened this issue Jul 3, 2024 · 0 comments
Open

Global SQLite config breaks histdb #141

atombender opened this issue Jul 3, 2024 · 0 comments

Comments

@atombender
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant