From 566a4da12f0831572a898e0a5adc31059c55c4b9 Mon Sep 17 00:00:00 2001
From: Benjamin Chausse <benjamin@chausse.xyz>
Date: Thu, 1 Feb 2024 15:02:10 -0500
Subject: .profile picks the right nvim (distro vs compiled)

---
 .profile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to '.profile')

diff --git a/.profile b/.profile
index c960b88..b34376e 100644
--- a/.profile
+++ b/.profile
@@ -1,6 +1,6 @@
 # Path
 export SCRIPTS=$HOME/.local/bin
-export PATH=$PATH$(find $SCRIPTS/ -type d -printf ":%p")
+export PATH=$PATH$(find "$SCRIPTS/" -type d -printf ":%p")
 export GOPATH=$HOME/.go
 export PATH=$PATH:$GOPATH/bin
 export PATH=$PATH:$HOME/.cargo/bin
@@ -25,7 +25,7 @@ export TEXMFHOME=$XDG_DATA_HOME/texmf
 export TEXSRC=$HOME/.local/src/sherbrooke-tex
 
 # Applications
-export EDITOR=/usr/bin/nvim
+export EDITOR=$(which nvim)
 export READER=/usr/bin/zathura
 export TERMINAL=/usr/bin/alacritty
 export TERM=/usr/bin/alacritty
-- 
cgit v1.2.3