-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.34 KB
/
Makefile
File metadata and controls
55 lines (44 loc) · 1.34 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
HOSTNAME := $(shell hostname)
UNAME := $(shell uname)
HEADLESS=.dircolors\
.zsh/git-prompt\
.zsh/z
all:
git submodule update --init --recursive
./deploy.sh
sudo fc-cache -f
tiny:
git submodule init $(HEADLESS)
git submodule update $(HEADLESS)
./deploy.sh
dump:
dconf dump /org/mate/terminal/ > mate-terminal-conf.dconf
apply:
dconf load /org/mate/terminal/ < mate-terminal-conf.dconf
NVIM_VENV = $(HOME)/.local/venv/nvim
DOTFILES_VENV = $(HOME)/.local/venv/dotfiles
vim:
ifeq ($(UNAME), Darwin)
brew install neovim python3
else
sudo apt-get install -y neovim python3 python3-venv
endif
python3 -m venv $(NVIM_VENV)
$(NVIM_VENV)/bin/pip install -q pynvim
/usr/bin/env nvim --headless "+Lazy sync" +qa
ansible:
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible openssh-server
sudo ssh-copy-id root@$(HOSTNAME)
ansible-playbook -i ansible/hosts.ini ansible/apt_packages.yml -l $(HOSTNAME)
wsl: tiny
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"
clean:
echo "removing dead links"
find -L ~/ -name . -o -type d -prune -o -type l -exec rm {} +
python-tools:
python3 -m venv $(DOTFILES_VENV)
$(DOTFILES_VENV)/bin/pip install -q keyring keyrings.alt
headless: tiny vim python-tools