有没有办法配置sqlite3,使头部默认显示?
@H_403_1@我知道我可以使用“.headers on”来打开标题,但是每次启动客户端时都必须继续键入,因为该设置不会在会话之间进行。我希望标题是永久的。
从
fine manual:
@H_403_1@INIT FILE@H_403_1@所以只需将一个名为.sqliterc的文件放在你的主目录中,并将其放在其中:
sqlite3 reads an initialization file to set the configuration of the interactive environment.
[…]
If the file~/.sqliterc
exists,it is processed first. can be found in the user’s home directory,it is read and processed. It should generally only contain Meta-commands.
.headers ON