-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
75 lines (60 loc) · 1.87 KB
/
makefile
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Install script for Coornail's dotfiles
INSTALL_DIR=${HOME}
OS=`uname -s`
# Output formatting
TITLE = @echo '[+]'
ifndef VERBOSE
Q = @
else
Q = @echo ' '
endif
general_modules = ack zsh git screen tmux vim
# My desktop is currently osx
desktop_modules = osx
# Main make target, installs everything
all: $(general_modules) $(desktop_modules)
ack:
$(TITLE) "Installing .ackrc"
$(Q)cp .ackrc ${INSTALL_DIR}/.ackrc
zsh:
$(TITLE) "Installing zsh"
$(Q)cp .zshrc ${INSTALL_DIR}
$(Q)cp .zshenv ${INSTALL_DIR}
$(Q)mkdir -p ~/bin
$(Q)curl -sS https://starship.rs/install.sh >> /tmp/starship.sh && chmod +x /tmp/starship.sh && /tmp/starship.sh --yes --bin-dir ~/bin
$(Q)mkdir -p ~/.config && cp ./starship/starship.toml ~/.config/starship.toml
$(Q)touch ${INSTALL_DIR}/.z
git:
$(TITLE) "Installing git config"
$(Q)cp .gitconfig ${INSTALL_DIR}
$(Q)cp .gitignore_global ${INSTALL_DIR}
$(Q)mkdir -p ${INSTALL_DIR}/.config/gh
$(Q)cp gh/config.yml ${INSTALL_DIR}/.config/gh
nethack:
$(TITLE) "Installing nethack config"
$(Q)cp .nethackrc ${INSTALL_DIR}
osx:
$(TITLE) "MacOS"
screen:
$(TITLE) "Installing screen config"
$(Q)cp .screenrc ${INSTALL_DIR}
tmux:
$(TITLE) "Installing tmux config"
$(Q)cp .tmux.conf ${INSTALL_DIR}
vim:
$(TITLE) "Installing vim config"
$(Q)cp .vimrc ${INSTALL_DIR}
$(Q)cp -r .vim/ ${INSTALL_DIR}/.vim
$(TITLE) "Downloading Vim-plug"
$(Q)mkdir -p ${INSTALL_DIR}/.vim/autoload
$(Q)curl -sfLo ${INSTALL_DIR}/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
emacs:
$(TITLE) "Installing emacs config"
$(Q)cp -r .emacs.d ${INSTALL_DIR}
ssh:
$(TITLE)Adding ssh public keys
$(Q)mkdir ${INSTALL_DIR}/.ssh || true
$(Q)curl https://github.com/coornail.keys >> ${INSTALL_DIR}/.ssh/authorized_keys
emacs:
$(Q)git clone https://github.com/syl20bnr/spacemacs ${INSTALL_DIR}/.emacs.d
$(Q)cp .spacemacs ${INSTALL_DIR}/.spacemacs