#!/bin/sh # Nvim Distro-Switcher alias nvim-lazy="NVIM_APPNAME=nvim-lazy nvim" nvims() { config=$(find -L "$HOME"/.config -maxdepth 2 -name "init.lua" -type f -execdir sh -c 'pwd | xargs basename' \; | fzf --prompt=" Neovim Config ") if [ "$config" = "" ]; then echo "Nothing selected" return 0 fi NVIM_APPNAME=$config nvim "$@" } # Nvim Distro-Switcher alias nvim-lazy="NVIM_APPNAME=nvim-lazy nvim"