From 2e30934d9a96878a6efd66272c93bcb422e8be94 Mon Sep 17 00:00:00 2001 From: Karsten Hachmeister Date: Sat, 9 Jul 2022 21:40:02 +0200 Subject: [PATCH] set EDITOR environment variable --- .profile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.profile b/.profile index b37790a..1e59722 100644 --- a/.profile +++ b/.profile @@ -13,6 +13,12 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi +if [[ -x "$(command -v hx)" ]] ; then + export EDITOR="hx" +elif [[ -x "$(command -v vim)" ]] ; then + export EDITOR="vim" +fi + # set GOPATH and add bin directory to PATH variable export GOPATH="$HOME/.local/lib/go"