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"