diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-09-13 16:14:32 +0530 |
---|---|---|
committer | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-09-13 16:14:32 +0530 |
commit | a11903f2176a9867814252269315b481dfc0d255 (patch) | |
tree | dcd036e8329c15744b935ecb6a3df3e37ab637a2 | |
parent | 00177cbe3e8837152b11daee3bf74ee0bedddd3d (diff) |
zsh: zshenv: use local nvim if available else use system nvim
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r-- | .zshenv | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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 |