1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh [ ! -d "${HOME}/.vim" ] && \ mkdir -p "${HOME}/.vim" stow \ --target="${HOME}" \ --ignore="^@.*" \ --verbose \ vim if command -v nvim >/dev/null 2>&1 && [ ! -f "${XDG_CONFIG_HOME}/nvim/init.vim" ] then mkdir -p "${XDG_CONFIG_HOME}/nvim" ln -s "${HOME}/.vim/vimrc" "${XDG_CONFIG_HOME}/nvim/init.vim" fi
Consider giving Nix/NixOS a try! <3