~kiril/dotfiles

ref: 8fed111c3f872ddc9c28f2911580062f66735514 dotfiles/Makefile -rw-r--r-- 1.9 KiB
8fed111cKiril Vladimiroff README.md: Remove hard-coded remote 1 year, 2 months ago
                                                                                
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
56
57
58
59
60
61
ALL   := bash tmux X git mercurial vim ipython zsh systemd mutt konsole

dotfiles = `pwd`

update:
	git pull
	git submodule sync
	git submodule foreach "git checkout master; git pull origin master; echo"
	$(MAKE) install

install: $(ALL:%=install-%)

install-X:
	mkdir -p ~/.config/touchegg
	ln -fs $(dotfiles)/x11/Xmodmap ~/.Xmodmap
	ln -fs $(dotfiles)/x11/xinitrc ~/.xinitrc
	ln -fs $(dotfiles)/x11/Xdefaults ~/.Xdefaults
	ln -fs $(dotfiles)/x11/Xresources ~/.Xresources
	ln -fs $(dotfiles)/x11/touchegg.conf ~/.config/touchegg/touchegg.conf
	ln -fs $(dotfiles)/x11/libinput-gestures.conf ~/.config/libinput-gestures.conf

install-bash:
	ln -fs $(dotfiles)/sh/rc ~/.bashrc
	ln -fs $(dotfiles)/bash/profile ~/.bash_profile

install-tmux:
	ln -fs $(dotfiles)/tmux/tmux.conf ~/.tmux.conf

install-git:
	ln -fs $(dotfiles)/gitconfig ~/.gitconfig

install-vim:
	[[ -d ~/.vim ]] || ( git clone git@github.com:Vladimiroff/Vimfiles.git ~/.vim && cd ~/.vim && make install )

install-ipython:
	[[ -d ~/.ipython ]] || mkdir -p ~/.ipython/profile_default
	ln -fs $(dotfiles)/ipython/profile_default/ipython_config.py ~/.ipython/profile_default/ipython_config.py

install-zsh:
	ln -fs $(dotfiles)/sh/rc ~/.zshrc

install-mercurial:
	ln -fs $(dotfiles)/hgrc ~/.hgrc

install-systemd:
	mkdir -p ~/.config/systemd/user/
	cp $(dotfiles)/systemd/user/* ~/.config/systemd/user/
	sed -i "/Environment\=/c\Environment\=\"DOTFILES\=$(dotfiles)\"" ~/.config/systemd/user/offlineimap.service

install-mutt:
	ln -fs $(dotfiles)/mail/mutt/ ~/.mutt
	ln -fs $(dotfiles)/mail/offlineimaprc ~/.offlineimaprc
	ln -fs $(dotfiles)/mail/msmtprc ~/.msmtprc
	mkdir -p ~/.cache/mutt/{headers,bodies,tmp}
	mkdir -p ~/.cache/mutt/{headers,bodies}

install-konsole:
	mkdir -p ~/.local/share/konsole/
	ln -fs $(dotfiles)/konsole/nord.colorscheme ~/.local/share/konsole/nord.colorscheme
	ln -fs $(dotfiles)/konsole/kiril.profile ~/.local/share/konsole/kiril.profile