From d116eda691fb901ae45ed3c571b8c50741a05a8b Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Tue, 2 Feb 2021 10:59:27 -0700 Subject: Updating few things --- Makefile | 9 --------- install | 9 +++++++++ install_plugins | 9 --------- 3 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 Makefile create mode 100755 install delete mode 100755 install_plugins diff --git a/Makefile b/Makefile deleted file mode 100644 index 8bac6e7..0000000 --- a/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -help: - @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' - -install: ## Install the symlink - ln -sf $(CURDIR)/vimrc ~/.vimrc - vim +PlugInstall +qa - -uninstall: ## Remove the sumlink - [[ -L ~/.vimrc ]] && rm ~/.vimrc diff --git a/install b/install new file mode 100755 index 0000000..1eca5e0 --- /dev/null +++ b/install @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +readonly PLUG_FILE="${HOME}/.config/nvim/autoload/plug.vim" +readonly PLUG_URL="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" + +# Install plug if it doesn't exist +[[ ! -f "${PLUG_FILE}" ]] && curl -fLo "${PLUG_FILE}" --create-dirs "${PLUG_URL}" &> /dev/null +# Install neovim plugins +nvim -i NONE -c PlugInstall -c quitall > /dev/null 2>&1 diff --git a/install_plugins b/install_plugins deleted file mode 100755 index 1eca5e0..0000000 --- a/install_plugins +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -readonly PLUG_FILE="${HOME}/.config/nvim/autoload/plug.vim" -readonly PLUG_URL="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" - -# Install plug if it doesn't exist -[[ ! -f "${PLUG_FILE}" ]] && curl -fLo "${PLUG_FILE}" --create-dirs "${PLUG_URL}" &> /dev/null -# Install neovim plugins -nvim -i NONE -c PlugInstall -c quitall > /dev/null 2>&1 -- cgit v1.2.3