From: Tobias Sachs Date: Sun, 4 Aug 2024 10:15:11 +0000 (+0200) Subject: find nvim X-Git-Url: https://src.twobees.de/?a=commitdiff_plain;h=fe33d18bc1ebe5cadbcb6992c62a07f88b3790e3;p=dotfiles.git find nvim --- diff --git a/stow/zsh/.zshrc b/stow/zsh/.zshrc index d8de298..98523e8 100644 --- a/stow/zsh/.zshrc +++ b/stow/zsh/.zshrc @@ -88,7 +88,14 @@ source $ZSH/oh-my-zsh.sh # export EDITOR='mvim' # fi -if [[ -e /snap/bin/nvim ]]; then +if [[ -e /home/ts/Applications/nvim.appimage ]]; then + export EDITOR='/home/ts/Applications/nvim.appimage' + alias vim=/var/lib/flatpak/exports/bin/io.neovim.nvim + alias nvim=/var/lib/flatpak/exports/bin/io.neovim.nvim + alias vi=/var/lib/flatpak/exports/bin/io.neovim.nvim +elif [[ -e /var/lib/flatpak/exports/bin/io.neovim.nvim ]]; then + export EDITOR='/var/lib/flatpak/exports/bin/io.neovim.nvim' +elif [[ -e /snap/bin/nvim ]]; then export EDITOR='/snap/bin/nvim' elif [ `which nvim` != "" ]; then export EDITOR=`which nvim`