summaryrefslogtreecommitdiff
path: root/home/xyz/.profile
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-10-18 21:05:15 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-10-22 00:10:21 -0700
commit55e5c5579b6463ca0a399d833d1d199c3ce97bb8 (patch)
tree9c6614e83d7f94e03fc5c05d409e4426dfc5697b /home/xyz/.profile
parentc439fc9e74dbd93ab1677cfe419063f09f83979e (diff)
add VISUAL env, for sqlite3
Diffstat (limited to 'home/xyz/.profile')
-rw-r--r--home/xyz/.profile3
1 files changed, 3 insertions, 0 deletions
diff --git a/home/xyz/.profile b/home/xyz/.profile
index 0418e6f2..49c4c51e 100644
--- a/home/xyz/.profile
+++ b/home/xyz/.profile
@@ -21,6 +21,9 @@ export HISTSIZE=15000
export HISTFILESIZE=15000
export HISTCONTROL=ignorespace
+# sqlite uses VISUAL for the edit() SQL function default text editor
+# https://sqlite.org/cli.html
+export VISUAL=nvim
export EDITOR=nvim
export PAGER=less
# -X seems can keep the output if exit less?