3 ms·
So, how does your ~/.sqliterc file look like? I have .headers on .mode column .timer on .changes on
by yread 6y ago
So, how does your ~/.sqliterc file look like?
I have
.headers on
.mode column
.timer on
.changes on
- Cthulhu_ 6y agoIs there a trick to choose whether or not to use the sqliterc file? I work on a pretty bad project that does database migration using thousands of lines of bash code that feeds queries to the sqlite3 commandline utility. For that one I'd like it to not read .sqliterc, but for my own use (on the same system) I'd like some of those options enabled.
- JNRowe 6y agoI wonder if the simplest "trick" is to do the exact opposite. Name your ~/.sqliterc something else, and then "alias sqlite3='sqlite3 -init ~/.sqliterc-interactive'" in your shell's config? Although, I'm wondering if using "sqlite3 -init /dev/null" in scripts would be a better idea in general. That way you would guard yourself against some random user's config doing something really weird.