-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (57 loc) · 1.93 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
.PHONY: all
all: brew brew_bundle node ruby dotfiles vim tmux_plugins prezto
.PHONY: dotfiles/
dotfiles:
for file in $(shell find $(CURDIR) -maxdepth 1 -type f -name ".*" -not -name ".gitignore" -not -name ".travis.yml" -not -name ".git" -not -name ".*.swp" -not -name ".gnupg"); do \
f=$$(basename $$file); \
echo $$file; \
ln -sfn $$file $(HOME)/$$f; \
done; \
mkdir -p $(HOME)/.config/kitty; \
ln -sfn $(CURDIR)/kitty.conf $(HOME)/.config/kitty
.PHONY: submodules
submodules:
git submodule update --init --recursive
brew:
which brew || curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh | bash
brew_bundle:
brew bundle
brew bundle --file=Brewfile.cloud
brew_bundle_lang: brew
brew bundle --file=Brewfile.lang
brew_bundle_ruby: brew
brew bundle --file=Brewfile.ruby
ruby: brew_bundle_ruby
rbenv install -s 2.6.5
rbenv global 2.6.5
gem install rails --version=6.0.1 --no-document
node: brew_bundle_lang
curl https://get.volta.sh | bash
~/.volta/bin/volta install node
~/.volta/bin/npm install -g typescript eslint prettier;
.PHONY: vim
vim: submodules
cd $(CURDIR)/vimrc && make
.PHONY: tmux_plugins
tmux_plugins: submodules
mkdir -p $(HOME)/.tmux/plugins
ln -sfn $(CURDIR)/tpm $(HOME)/.tmux/plugins
.PHONY: prezto
prezto:
ln -sfn $(CURDIR)/.zprezto $(HOME)
.PHONY: jira
jira:
ln -sfn $(CURDIR)/.jira.d $(HOME)
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: alanuship
alanuship:
brew install alacritty nushell starship
mkdir -p $(HOME)/.config/alacritty
ln -sfn $(CURDIR)/starship.toml $(HOME)/.config/starship.toml
ln -sfn $(CURDIR)/alacritty.yml $(HOME)/.config/alacritty/
ln -sfn $(CURDIR)/.init.nu $(HOME)/.config/.init.nu
-cp -n $(CURDIR)/nushell.config.toml "$(shell dirname "$(shell nu -c "config path")")/config.toml"
touch $(HOME)/.config/nu.env.toml
nu -c "blastoff"