-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (48 loc) · 1.82 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
.PHONY: all
all: dotfiles sdkman ohmyzsh ohmyzsh-plugins
.PHONY: ohmyzsh
ohmyzsh: ## Install oh-my-zsh
if [ ! -d ~/.oh-my-zsh ]; then \
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash; \
fi;
.PHONY: ohmyzsh-plugins
ohmyzsh-plugins: ## Install oh-my-zsh plugins
git clone https://github.com/zsh-users/zsh-autosuggestions $(HOME)/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $(HOME)/.oh-my-zsh/custom/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $(HOME)/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
.PHONY: sdkman
sdkman: ## Install SDKMAN
if [ ! -d ~/.sdkman ]; then \
curl -s "https://get.sdkman.io" | bash; \
fi;
.PHONY: brew-min
brew-min: ## Install minimal dev setup via brew
brew install git
brew install git-delta
brew install eza
brew install fzf
brew install zoxide
brew install atuin
brew install kitty
brew install neovim
brew install starship
brew install --cask keepassxc
.PHONY: brew-font
brew-font: ## Install fonts via brew
brew tap homebrew/cask-fonts
brew install --cask font-fontawesome
brew install --cask font-cascadia-mono
brew install --cask font-cascadia-mono-pl
.PHONY: dotfiles
dotfiles: ## Link the dotfiles.
ln -sfn $(CURDIR)/zshrc $(HOME)/.zshrc;
ln -sfn $(CURDIR)/zsh $(HOME)/.zsh;
ln -sfn $(CURDIR)/gitconfig $(HOME)/.gitconfig;
ln -sfn $(CURDIR)/gitignore $(HOME)/.gitignore;
ln -sfn $(CURDIR)/doom.d $(HOME)/.doom.d;
ln -sfn $(CURDIR)/kitty $(HOME)/.config/kitty;
ln -sfn $(CURDIR)/nvim $(HOME)/.config/nvim;
ln -sfn $(CURDIR)/starship.toml $(HOME)/.config/starship.toml;
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'