]> src.twobees.de Git - dotfiles.git/commitdiff
find nvim
authorTobias Sachs <git-pngdhxpf-ts@twobees.de>
Sun, 4 Aug 2024 10:15:11 +0000 (12:15 +0200)
committerTobias Sachs <git-pngdhxpf-ts@twobees.de>
Sun, 4 Aug 2024 10:15:11 +0000 (12:15 +0200)
stow/zsh/.zshrc

index d8de29816dff6969fdf5bebc1e4d9d0676e6fab6..98523e8fbd24e65dbdcee64cf35e698f7cf543c1 100644 (file)
@@ -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`