summaryrefslogtreecommitdiffstats
path: root/.zshenv
diff options
context:
space:
mode:
Diffstat (limited to '.zshenv')
-rw-r--r--.zshenv29
1 files changed, 29 insertions, 0 deletions
diff --git a/.zshenv b/.zshenv
new file mode 100644
index 0000000..0b62efa
--- /dev/null
+++ b/.zshenv
@@ -0,0 +1,29 @@
+if command -v nvim > /dev/null
+then
+ export VISUAL=nvim
+elif command -v vim > /dev/null
+then
+ export VISUAL=vim
+elif command -v vi > /dev/null
+then
+ export VISUAL=vi
+fi
+
+if command -v ex > /dev/null
+then
+ export EDITOR=nvim
+elif command -v ed > /dev/null
+then
+ export EDITOR=vim
+fi
+
+if command -v less > /dev/null
+then
+ export PAGER=less
+elif command -v more > /dev/null
+then
+ export PAGER=more
+fi
+
+ NULLCMD=${PAGER:-cat}
+ READNULLCMD=${PAGER:-more}