Makefile 852 Bytes
Newer Older
1 2
all: install setup

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
install-basic:
	sudo apt-get install git tree dialog ctags curl tmux rsync

install-neovim-debian:
	sudo cp etc/apt/preferences.d/testing-priority /etc/apt/preferences.d/testing-priority
	sudo cp etc/apt/sources.list.d/testing.list /etc/apt/sources.list.d/testing.list
	sudo apt-get update
	sudo apt-get install neovim
	$(MAKE) install install-vimplug-nvim

install-neovim-ubuntu:
	sudo add-apt-repository ppa:neovim-ppa/stable
	sudo apt-get update
	sudo apt-get install neovim
	$(MAKE) install-vimplug-nvim

install-vimplug-nvim:
20 21 22 23 24
	curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
		https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

setup:
	rsync -rtv home/ ~/
25
	nvim +PlugInstall +qall
26 27 28 29 30

save:
	cp -rfv ~/.config/nvim home/.config
	cp -rfv ~/.bashrc ~/.inputrc ~/.tmux.conf ~/.tmux
	git status