From 38bab29776950ac2364ed64195b89887717c33de Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- vim/@install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 vim/@install (limited to 'vim/@install') diff --git a/vim/@install b/vim/@install new file mode 100755 index 0000000..acf3500 --- /dev/null +++ b/vim/@install @@ -0,0 +1,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 -- cgit 1.4.1