-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (25 loc) · 973 Bytes
/
Makefile
File metadata and controls
29 lines (25 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
MAKEFLAGS += --silent
install:
@echo "Installing dependencies"
sudo apt install tmux python3 exuberant-ctags zsh git curl silversearcher-ag neovim fonts-powerline
@echo "Linking config files"
ln -sfn ~/.dotfiles/tmux.conf ~/.tmux.conf
ln -sfn ~/.dotfiles/config/nvim ~/.config/
@echo "Installing packer.nvim"
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
@echo "Installing NeoVim plugins"
nvim +PackerSync +qa
cd ~/.fzf/ && ./install
@echo "Done!"
nvim_update:
@echo "Creating a backup of the current plugins versions"
nvim +'PackerSnapshot plugins.bkp' +qal > /dev/null
@echo "Updating plugins"
nvim +PackerSync +qa
@echo "\nRun 'make nvim_plugins_rollback' to reinstall the previous plugins versions"
@echo "Done!\n"
nvim_plugins_rollback:
@echo "Rolling back the plugins versions"
nvim +'PackerSnapshotRollback plugins.bkp' +qal
@echo "Rollback finished with success!\n"