-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
85 lines (58 loc) · 2.06 KB
/
Copy pathMakefile
File metadata and controls
85 lines (58 loc) · 2.06 KB
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
76
77
78
79
80
81
82
83
84
85
CONFIG_HOME ?= $(HOME)/.config
FISH_COMPL ?= $(CONFIG_HOME)/fish/completions
install:\
brew\
fish\
ghostty\
nvim\
rust\
tree-sitter\
macos
.PHONY: fish nvim brew-check brew-graph
brew: Brewfile.lock.json
Brewfile.lock.json: Brewfile .brew_install.sh
brew bundle install --cleanup --no-upgrade --file "$<"
.brew_install.sh:
curl -fsSL 'https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh' > $@
type brew || /bin/bash '.brew_install.sh' && eval "$$(/opt/homebrew/bin/brew shellenv)"
brew-check:
brew bundle check --verbose
brew-graph:
brew deps --graph --installed
fish:
fish -c 'set -U fish_greeting' \
-c 'set fish_color_command --bold' \
-c 'set fish_color_param normal' \
-c 'set fish_color_quote brblue'\
-c 'set __fish_git_prompt_showcolorhints 1'\
-c 'set __fish_git_prompt_showdirtystate 1'\
-c 'set __fish_git_prompt_color grey'\
-c 'set __fish_git_prompt_color_branch bryellow'\
-c 'set __fish_git_prompt_color_merging yellow'
$(FISH_COMPL):
mkdir -pv $@
MELANGE_URL = https://raw.githubusercontent.com/savq/melange-nvim/refs/heads/master/term
ghostty: ghostty/themes/melange_dark ghostty/themes/melange_light
ghostty/themes/melange_dark:
curl --create-dirs --output $@ "$(MELANGE_URL)/ghostty/melange_dark"
ghostty/themes/melange_light:
curl --create-dirs --output $@ "$(MELANGE_URL)/ghostty/melange_light"
PAQ_DIR = "$(HOME)/.local/share/nvim/site/pack/paqs/start/paq-nvim"
nvim: $(HOME)/.editorconfig $(HOME)/.vimrc nvim/after/plugin/paq.lua
[ -d $(PAQ_DIR) ] || git clone --depth=1 'https://github.com/savq/paq-nvim.git' $(PAQ_DIR)
nvim --headless -c 'lua _paq_bootstrap()'
$(HOME)/.vimrc:
ln -fhs $(CONFIG_HOME)/nvim/init.vim $@
$(HOME)/.editorconfig:
ln -fhs $(CONFIG_HOME)/.editorconfig $@
rust: rustup-init $(FISH_COMPL)/rustup.fish
rustup update stable
rustup-init:
rustup-init -y
$(FISH_COMPL)/rustup.fish: $(FISH_COMPL)
rustup completions fish rustup > $@
tree-sitter: $(FISH_COMPL)/tree-sitter.fish
$(FISH_COMPL)/tree-sitter.fish: $(FISH_COMPL)
tree-sitter complete --shell fish > $@
macos:
./macos.sh