Makefile 1.34 KB
Newer Older
Jørn Åne's avatar
Jørn Åne committed
1 2 3 4 5
prefix=~

dotfiles:

install: dotfiles
6 7
	install -m 0644 dot.bash_profile $(prefix)/.bash_profile
	install -m 0644 dot.bashrc $(prefix)/.bashrc
Jørn Åne's avatar
Jørn Åne committed
8 9
	install -m 0644 dot.inputrc $(prefix)/.inputrc
	install -m 0644 dot.tcshrc $(prefix)/.tcshrc
Jørn Åne's avatar
Jørn Åne committed
10
	install -m 0644 dot.vimrc $(prefix)/.vimrc
11
	install -m 0644 dot.zshenv $(prefix)/.zshenv
12 13
	install -d -m 0755 $(prefix)/.config/fish/
	install -m 0644 dot.config/fish/config.fish $(prefix)/.config/fish/config.fish
Jørn Åne's avatar
Jørn Åne committed
14 15 16
	install -m 0644 dot.gitignore_global $(prefix)/.gitignore_global
	git config --global core.excludesfile $(prefix)/.gitignore_global
	git config --global push.default simple
17
	git config --global pull.rebase true
Jørn Åne's avatar
Jørn Åne committed
18
	git config --global url.git@github.com:.insteadof https://github.com/
Jørn Åne's avatar
Jørn Åne committed
19
	git config --global url.git@bitbucket.org:.insteadof https://bitbucket.org/
Jørn Åne's avatar
Jørn Åne committed
20 21
	git config --global user.name "Jørn Åne"
	git config --global user.email git@jornane.no
22 23

diff:
Jørn Åne's avatar
Jørn Åne committed
24 25
	diff dot.bash_profile $(prefix)/.bash_profile || true 2>/dev/null
	diff dot.bashrc $(prefix)/.bashrc || true 2>/dev/null
Jørn Åne's avatar
Jørn Åne committed
26 27
	diff dot.inputrc $(prefix)/.inputrc || true 2>/dev/null
	diff dot.tcshrc $(prefix)/.tcshrc || true 2>/dev/null
Jørn Åne's avatar
Jørn Åne committed
28 29
	diff dot.vimrc $(prefix)/.vimrc || true 2>/dev/null
	diff dot.zshenv $(prefix)/.zshenv || true 2>/dev/null
30
	diff dot.config/fish/config.fish $(prefix)/.config/fish/config.fish || true $(prefix)/.config/fish/config.fish 2>/dev/null