summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2024-09-13 16:14:32 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2024-09-13 16:14:32 +0530
commita11903f2176a9867814252269315b481dfc0d255 (patch)
treedcd036e8329c15744b935ecb6a3df3e37ab637a2
parent00177cbe3e8837152b11daee3bf74ee0bedddd3d (diff)
zsh: zshenv: use local nvim if available else use system nvim
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r--.zshenv16
1 files changed, 12 insertions, 4 deletions
diff --git a/.zshenv b/.zshenv
index bbdc78c..3938a74 100644
--- a/.zshenv
+++ b/.zshenv
@@ -7,15 +7,23 @@ export XDG_STATE_HOME=$HOME/.local/state
# fnm
#export PATH=/home/gogo/.fnm:$PATH
PATH="$HOME/.local/bin:$PATH"
-PATH="$HOME/.local/nvim/bin:$PATH"
+if [ -d $HOME/.local/nvim ]; then
+ PATH="$HOME/.local/nvim/bin:$PATH"
+fi
export PATH=$HOME/.local/bin:$PATH
export npm_config_prefix="$HOME/.local"
#eval "`fnm env`"
-export EDITOR=$HOME/.local/nvim/bin/nvim
+if [ -d $HOME/.local/nvim ]; then
+ export EDITOR=$HOME/.local/nvim/bin/nvim
+ export MANPAGER='$HOME/.local/nvim/bin/nvim +Man!'
+ export VISUAL=$HOME/.local/nvim/bin/nvim
+else
+ export EDITOR=nvim
+ export MANPAGER='nvim +Man!'
+ export VISUAL=nvim
+fi
export PAGER="less"
-export MANPAGER='$HOME/.local/nvim/bin/nvim +Man!'
-export VISUAL=$HOME/.local/nvim/bin/nvim
export BROWSER=/usr/bin/firefox
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_PLATFORM_PLUGIN=qt5ct