From 9905ded582314ad6250dfcedf856909f8885c5c0 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Tue, 14 Jun 2022 20:13:19 +1200 Subject: [PATCH] feat(zsh): update env vars (EDITOR/COLORTERM) --- zsh/.config/zsh/source/environnment.zsh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/zsh/.config/zsh/source/environnment.zsh b/zsh/.config/zsh/source/environnment.zsh index 26c0c1e..a2ea807 100644 --- a/zsh/.config/zsh/source/environnment.zsh +++ b/zsh/.config/zsh/source/environnment.zsh @@ -2,8 +2,18 @@ # environment variables # -export EDITOR="nvim" +# editor +if command -v nvim &> /dev/null; then + export EDITOR='nvim' +elif command -v vim &> /dev/null; then + export EDITOR='vim' +fi # locale export LANG='en_NZ.UTF-8' export LC_ALL='en_NZ.UTF-8' + +# more terminal futzing. yay. +export COLORTERM='24bit' + +# vim: ft=zsh expandtab tabstop=2 shiftwidth=2