-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTaskfile.yml
More file actions
641 lines (585 loc) · 20 KB
/
Taskfile.yml
File metadata and controls
641 lines (585 loc) · 20 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
output: prefixed
silent: true
run: once
vars:
DOTFILES: "{{.ROOT_DIR}}"
# Icons
OK: '\033[32m\033[0m'
WARN: '\033[33m\033[0m'
FAIL: '\033[31m\033[0m'
LINK: '\033[32m\033[0m'
WORK: '\033[35m\033[0m'
BOLD: '\033[1m'
RESET: '\033[0m'
env:
CLICOLOR_FORCE: "1"
FORCE_COLOR: "1"
tasks:
# ===========================================================================
# System update pipeline
#
# DAG:
# link:*, auth:*, claude, tmux:* — parallel
# brew:bundle:update → brew → brew:upgrade → brew — chained
# [brew, mise] → zsh-completions — last
# ===========================================================================
# ---------------------------------------------------------------------------
# Bootstrap tasks (fresh system)
# ---------------------------------------------------------------------------
xcode:install:
desc: Install Xcode Command Line Tools
platforms: [darwin]
status: ["command -v git"]
cmds:
- xcode-select --install
- |
printf "{{.WARN}} waiting for Xcode CLI tools installer...\n"
while ! command -v git >/dev/null 2>&1; do sleep 0.5; done
printf "{{.OK}} xcode cli tools\n"
dotfiles:clone:
desc: Clone dotfiles repo
deps: [xcode:install]
status: ["test -d {{.DOTFILES}}"]
cmds:
- git clone https://github.com/radiosilence/dotfiles {{.DOTFILES}}
- printf "{{.OK}} dotfiles cloned\n"
brew:install:
desc: Install Homebrew
platforms: [darwin]
status: ["command -v brew"]
cmds:
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- |
if [ -d /opt/homebrew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
else
eval "$(/usr/local/bin/brew shellenv)"
fi
- printf "{{.OK}} homebrew\n"
brew:roles:
desc: Copy Brewfile roles template
deps: [dotfiles:clone]
status: ["test -f {{.DOTFILES}}/dotfiles-roles.yml"]
cmds:
- cp {{.DOTFILES}}/dotfiles-roles.yml.template {{.DOTFILES}}/dotfiles-roles.yml
- printf "{{.WARN}} copied dotfiles-roles.yml — edit to enable brew roles\n"
1password:setup:
desc: Set up 1Password SSH agent
platforms: [darwin]
deps: [brew:bundle]
status:
- "test -S ~/Library/Group\\ Containers/2BUA8C4S2C.com.1password/t/agent.sock"
cmds:
- printf "{{.WARN}} open 1Password, sign in, and enable the SSH agent (Settings → Developer → SSH Agent)\n"
- |
sock="$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
while [ ! -S "$sock" ]; do sleep 0.5; done
printf "{{.OK}} 1password ssh agent\n"
1password:ssh-config:
desc: Add 1Password SSH agent to ~/.ssh/config
platforms: [darwin]
status: ["grep -q '2BUA8C4S2C.com.1password' ~/.ssh/config 2>/dev/null"]
cmds:
- |
mkdir -p ~/.ssh
[ -f ~/.ssh/config ] || touch ~/.ssh/config && chmod 600 ~/.ssh/config
printf '\nHost *\n IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"\n' >> ~/.ssh/config
printf "{{.OK}} 1password ssh agent added to ~/.ssh/config\n"
gh:auth:
desc: Authenticate GitHub CLI
deps: [1password:setup]
status: ["gh auth status 2>/dev/null"]
cmds:
- printf "{{.WARN}} gh is not authenticated — run 'gh auth login' in another terminal\n"
- |
while ! gh auth status &>/dev/null; do sleep 0.5; done
printf "{{.OK}} gh authenticated\n"
rosetta:install:
desc: Install Rosetta 2 (Apple Silicon)
platforms: [darwin]
status: ["test $(uname -m) != arm64 || /usr/bin/pgrep -q oahd 2>/dev/null"]
cmds:
- /usr/sbin/softwareupdate --install-rosetta --agree-to-license
- printf "{{.OK}} rosetta 2\n"
claude:install:
desc: Install Claude Code
status: ["command -v claude"]
cmds:
- curl -fsSL https://claude.ai/install.sh | bash
- printf "{{.OK}} claude code\n"
brew:pam-reattach:
desc: Install pam-reattach for tmux Touch ID support
platforms: [darwin]
status: ["test -f /opt/homebrew/lib/pam/pam_reattach.so"]
cmds:
- brew install pam-reattach
- printf "{{.OK}} pam-reattach\n"
sudo:touchid:
desc: Enable TouchID for sudo
platforms: [darwin]
status: ["grep -q pam_tid /etc/pam.d/sudo_local 2>/dev/null"]
cmds:
- sudo sh -c 'printf "auth sufficient pam_tid.so\n" > /etc/pam.d/sudo_local'
- printf "{{.OK}} touchid sudo\n"
sudo:reattach:
desc: Enable Touch ID inside tmux via pam_reattach
platforms: [darwin]
deps: [brew:pam-reattach, sudo:touchid]
status: ["grep -q pam_reattach /etc/pam.d/sudo_local 2>/dev/null"]
cmds:
- sudo sh -c '{ printf "auth optional /opt/homebrew/lib/pam/pam_reattach.so\n"; cat /etc/pam.d/sudo_local; } > /etc/pam.d/sudo_local.tmp && mv /etc/pam.d/sudo_local.tmp /etc/pam.d/sudo_local'
- printf "{{.OK}} sudo reattach (tmux touchid)\n"
sudo:timeout:
desc: Set sudo timeout to 30 min
platforms: [darwin]
status: ["test -f /etc/sudoers.d/timeout"]
cmds:
- sudo sh -c 'echo "Defaults timestamp_timeout=30" > /etc/sudoers.d/timeout && chmod 0440 /etc/sudoers.d/timeout'
- printf "{{.OK}} sudo timeout\n"
mise:ensure:
desc: Ensure mise is installed
platforms: [darwin]
deps: [brew:install]
status: ["command -v mise"]
cmds:
- brew install mise
- printf "{{.OK}} mise installed\n"
mise:install:
desc: Install mise tools
deps: [mise:ensure, gh:auth, link:config]
status: ["! command -v mise"]
cmds:
- |
export PATH="$HOME/.local/share/mise/shims:$PATH"
mise install
- printf "{{.OK}} mise tools installed\n"
converge:
desc: Converge system to desired state
deps:
# Bootstrap (skipped on working systems via status:)
- dotfiles:clone
- brew:install
- brew:roles
- rosetta:install
- claude:install
- sudo:touchid
- sudo:reattach
- sudo:timeout
- 1password:ssh-config
- reinstall-bins
- use-ssh
# Regular update
- link
- check:auth
- brew:bundle
- icon:wezterm
- apt:upgrade
- dnf:upgrade
- mise:upgrade
- tmux
- generate:completions
cmds:
- rm -f ~/.cache/zsh/eval/*.zsh ~/.cache/zsh/eval/*.zwc
- rm -f ~/.config/zsh/conf.d/*.zwc
- rm -f ~/.zcompdump
- printf "{{.OK}} {{.BOLD}}converged{{.RESET}} (restart shell for changes)\n"
# ---------------------------------------------------------------------------
# Link tasks
# ---------------------------------------------------------------------------
link:
desc: Symlink dotfiles and configs
deps:
- link:dotfiles
- link:config
- patch:gitconfig
- patch:ssh
- link:brewfile
- link:claude-hooks
- link:sheldon
- link:launchagents
- patch:npmrc
- link:cargo
link:dotfiles:
desc: Symlink dotfiles (.* → ~)
cmds:
- |
for f in "{{.DOTFILES}}"/.* ; do
name=$(basename "$f")
case "$name" in
.|..|.git|.gitignore|.github|.vscode|.sonarlint|\
.editorconfig|.codeowners-lsp|.ruby-lsp|.crates.toml|.crates2.json)
continue ;;
esac
target="$HOME/$name"
[ -L "$target" ] && [ "$(readlink "$target")" = "$f" ] && continue
rm -rf "$target"
ln -s "$f" "$target"
printf "{{.LINK}} %s\n" "$name"
done
link:config:
desc: Symlink config dirs (config.d/* → ~/.config/*)
cmds:
- |
mkdir -p "$HOME/.config"
for f in "{{.DOTFILES}}/config.d"/*; do
[ -e "$f" ] || continue
name=$(basename "$f")
target="$HOME/.config/$name"
[ -L "$target" ] && [ "$(readlink "$target")" = "$f" ] && continue
rm -rf "$target"
ln -s "$f" "$target"
printf "{{.LINK}} ~/.config/%s\n" "$name"
done
patch:gitconfig:
desc: Ensure gitconfig includes dotfiles
cmds:
- |
[ -f "$HOME/.gitconfig" ] || touch "$HOME/.gitconfig"
grep -q '.dotfiles' "$HOME/.gitconfig" 2>/dev/null && exit 0
printf '\n[include]\npath = ~/.dotfiles/git.d/core.conf\n' >> "$HOME/.gitconfig"
printf "{{.OK}} gitconfig include\n"
patch:ssh:
desc: Ensure SSH config includes dotfiles
cmds:
- |
mkdir -p "$HOME/.ssh"
if [ ! -f "$HOME/.ssh/config" ]; then
touch "$HOME/.ssh/config"
chmod 600 "$HOME/.ssh/config"
fi
grep -q '.dotfiles' "$HOME/.ssh/config" 2>/dev/null && exit 0
printf '\nInclude ~/.dotfiles/ssh.d/*.conf\n' >> "$HOME/.ssh/config"
printf "{{.OK}} ssh config include\n"
link:brewfile:
desc: Symlink Brewfile
platforms: [darwin]
cmds:
- |
target="$HOME/Brewfile"
[ -L "$target" ] && [ "$(readlink "$target")" = "{{.DOTFILES}}/Brewfile" ] && exit 0
ln -sf "{{.DOTFILES}}/Brewfile" "$target"
printf "{{.OK}} Brewfile\n"
link:claude-hooks:
desc: Inject Claude Code hooks into settings.json
status: ["! command -v jq || ! test -f $HOME/.claude/settings.json"]
cmds:
- |
claude_settings="$HOME/.claude/settings.json"
jq -e '.hooks.PostToolUse[]?.hooks[]? | select(.command | contains("gastown-file-changed"))' "$claude_settings" >/dev/null 2>&1 && exit 0
jq '
.hooks //= {} |
.hooks.PostToolUse //= [] |
.hooks.PostToolUse += [{"matcher": "Write|Edit", "hooks": [{"type": "command", "command": "~/.dotfiles/hooks/gastown-file-changed.sh"}]}]
' "$claude_settings" > "$claude_settings.tmp" && mv "$claude_settings.tmp" "$claude_settings"
printf "{{.OK}} claude hooks: gastown\n"
patch:npmrc:
desc: Ensure npmrc has security defaults
cmds:
- |
npmrc="$HOME/.npmrc"
[ -f "$npmrc" ] || touch "$npmrc"
chmod 600 "$npmrc"
changed=0
while IFS= read -r line || [ -n "$line" ]; do
case "$line" in \#*|"") continue ;; esac
key="${line%%=*}"
grep -q "^${key}=" "$npmrc" || { echo "$line" >> "$npmrc"; changed=1; }
done < "{{.DOTFILES}}/packager.d/npmrc-security"
[ "$changed" = 1 ] && printf "{{.OK}} npmrc security defaults\n"
exit 0
link:cargo:
desc: Symlink cargo security config
cmds:
- |
mkdir -p "$HOME/.cargo"
target="$HOME/.cargo/config.toml"
src="{{.DOTFILES}}/packager.d/cargo-config.toml"
[ -L "$target" ] && [ "$(readlink "$target")" = "$src" ] && exit 0
if [ -f "$target" ] && [ ! -L "$target" ]; then
printf "{{.WARN}} ~/.cargo/config.toml exists — merge %s manually\n" "$src"
exit 0
fi
ln -sf "$src" "$target"
printf "{{.LINK}} cargo config\n"
link:launchagents:
desc: Symlink and reload LaunchAgents
platforms: [darwin]
cmds:
- |
mkdir -p "$HOME/Library/LaunchAgents"
for f in "{{.DOTFILES}}/launchd"/*.plist; do
[ -e "$f" ] || continue
name=$(basename "$f")
label="${name%.plist}"
target="$HOME/Library/LaunchAgents/$name"
[ -L "$target" ] && [ "$(readlink "$target")" = "$f" ] || {
rm -f "$target"
ln -s "$f" "$target"
printf "{{.LINK}} LaunchAgents/%s\n" "$name"
}
launchctl bootout "gui/$(id -u)/$label" 2>/dev/null || true
launchctl bootstrap "gui/$(id -u)" "$target"
printf "{{.OK}} %s (loaded)\n" "$label"
done
link:sheldon:
desc: Sheldon plugin manager
status:
- "! command -v sheldon"
cmds:
- sheldon source >/dev/null 2>&1 && printf "{{.OK}} sheldon\n"
# ---------------------------------------------------------------------------
# Build / utility tasks
# ---------------------------------------------------------------------------
reinstall-bins:
desc: Build and install rust binaries from crates/
deps: [mise:install]
status: ["test -f {{.DOTFILES}}/bin/clean-dls"]
cmds:
- printf "{{.WORK}} building rust binaries\n"
- cargo install --path {{.DOTFILES}}/crates --bins --root {{.DOTFILES}}
- printf "{{.OK}} binaries installed\n"
use-ssh:
desc: Switch dotfiles remote from HTTPS to SSH
dir: "{{.DOTFILES}}"
cmds:
- |
current=$(git remote get-url origin)
if echo "$current" | grep -q "^git@"; then
printf "{{.OK}} already using SSH\n"
exit 0
fi
ssh_url=$(echo "$current" | sed -E 's|https://github.com/(.+)|git@github.com:\1|')
git remote set-url origin "$ssh_url"
printf "{{.OK}} remote switched to %s\n" "$ssh_url"
# ---------------------------------------------------------------------------
# Update tasks
# ---------------------------------------------------------------------------
check:auth:
desc: Check authentication status
deps:
- check:auth:gh
- check:auth:op
check:auth:gh:
desc: Check GitHub CLI auth
platforms: [darwin]
status: ["! command -v gh"]
cmds:
- |
if gh auth status >/dev/null 2>&1; then
printf "{{.OK}} gh: authenticated\n"
else
printf "{{.WARN}} gh: not authenticated (run gh auth login)\n"
fi
check:auth:op:
desc: Check 1Password CLI integration
platforms: [darwin]
status: ["! command -v op"]
cmds:
- |
if op account list >/dev/null 2>&1; then
printf "{{.OK}} op: integrated\n"
else
printf "{{.WARN}} op: not integrated (check 1Password CLI settings)\n"
fi
brew:bundle:
desc: Install/upgrade brew packages
deps: [link:brewfile, brew:pam-reattach]
platforms: [darwin]
status: ["! command -v brew"]
cmds:
- brew bundle --quiet
- brew cleanup --quiet &
icon:wezterm:
desc: Apply custom WezTerm icon via Finder xattr (bypasses macOS 26 liquid-glass framing)
platforms: [darwin]
deps: [brew:bundle]
status:
- test ! -d /Applications/WezTerm.app
- test -f "/Applications/WezTerm.app/Icon\r"
cmds:
- fileicon set /Applications/WezTerm.app "{{.DOTFILES}}/config.d/wezterm/wezterm.icns"
- rm -f /var/folders/*/*/*/com.apple.dock.iconcache 2>/dev/null || true
- rm -rf /var/folders/*/*/*/com.apple.iconservices* 2>/dev/null || true
- killall Dock 2>/dev/null || true
- killall Finder 2>/dev/null || true
- printf "{{.OK}} WezTerm icon applied\n"
apt:upgrade:
desc: Update apt packages
platforms: [linux]
status: ["! command -v apt-get"]
cmds:
- sudo apt-get update
- sudo apt-get upgrade -y
- sudo apt-get autoremove -y
dnf:upgrade:
desc: Update dnf packages
platforms: [linux]
status: ["! command -v dnf"]
cmds:
- sudo dnf update -y
mise:upgrade:
desc: Update mise tools
deps: [gh:auth]
status: ["! command -v mise"]
cmds:
- mise up
- mise reshim
tmux:
desc: Install/update tmux plugins
deps:
- tmux:resurrect
- tmux:fzf-url
tmux:resurrect:
desc: Install/update tmux-resurrect
cmds:
- task: tmux:plugin
vars:
NAME: tmux-resurrect
URL: https://github.com/tmux-plugins/tmux-resurrect.git
tmux:fzf-url:
desc: Install/update tmux-fzf-url
cmds:
- task: tmux:plugin
vars:
NAME: tmux-fzf-url
URL: https://github.com/wfxr/tmux-fzf-url.git
tmux:plugin:
internal: true
run: always
vars:
DEST: "{{.HOME}}/.tmux/plugins/{{.NAME}}"
cmds:
- mkdir -p {{.HOME}}/.tmux/plugins
- |
if [ -d "{{.DEST}}" ]; then
before=$(git -C "{{.DEST}}" rev-parse HEAD)
git -C "{{.DEST}}" pull --quiet
after=$(git -C "{{.DEST}}" rev-parse HEAD)
[ "$before" != "$after" ] && printf "{{.OK}} {{.NAME}} (updated)\n" || true
else
git clone --quiet {{.URL}} "{{.DEST}}"
printf "{{.OK}} {{.NAME}} (installed)\n"
fi
generate:completions:
desc: Regenerate zsh completions
deps:
- for:
- argocd
- buf
- clean-dls
- clean-exif
- docker
- embed-art
- extract-exif-from-flac
- fcloud
- git-squash
- git-sync
- glow
- golangci-lint
- gt
- helm
- houston
- imp
- k9s
- kill-port
- kubecolor
- kubectl
- lefthook
- nano-web
- op
- orbctl
- parallel-dl-extract
- procs
- prune
- prune-gen
- pulumi
- sesh
- tilt
- to-audio
- turso
- unfuck-xcode
- url2base64
- vimv
- watchwoman
- yq
task: generate:completions:gen
vars:
TOOL: "{{.ITEM}}"
CMD: "{{.ITEM}} completion zsh"
# Custom completion commands
- task: generate:completions:gen
vars: { TOOL: gh, CMD: "gh completion -s zsh" }
- task: generate:completions:gen
vars: { TOOL: fastmail-cli, CMD: "fastmail-cli completions zsh" }
- task: generate:completions:gen
vars: { TOOL: koan, CMD: "koan completions zsh" }
- task: generate:completions:gen
vars: { TOOL: codeowners-cli, CMD: "codeowners-cli completions zsh" }
- task: generate:completions:gen
vars: { TOOL: task, CMD: "task --completion zsh" }
- task: generate:completions:gen
vars: { TOOL: just, CMD: "just --completions zsh" }
- task: generate:completions:gen
vars: { TOOL: aws-vault, CMD: "aws-vault --completion-script-zsh" }
- task: generate:completions:gen
vars: { TOOL: rg, CMD: "rg --generate complete-zsh" }
- task: generate:completions:gen
vars: { TOOL: xh, CMD: "xh --generate complete-zsh" }
- task: generate:completions:gen
vars: { TOOL: pup, CMD: "pup completions zsh" }
- task: generate:completions:gen
vars: { TOOL: bun, CMD: "bun completions zsh" }
- task: generate:completions:gen
vars: { TOOL: deno, CMD: "deno completions zsh" }
- task: generate:completions:gen
vars: { TOOL: starship, CMD: "starship completions zsh" }
- task: generate:completions:gen
vars: { TOOL: sheldon, CMD: "sheldon completions --shell zsh" }
- task: generate:completions:gen
vars: { TOOL: bat, CMD: "bat --completion zsh" }
- task: generate:completions:gen
vars: { TOOL: delta, CMD: "delta --generate-completion zsh" }
# Prebuilt: lsd
- task: generate:completions:lsd
# Sourced: npm
- task: generate:completions:npm
generate:completions:setup:
internal: true
deps: [brew:bundle, mise:upgrade]
vars:
COMP_DIR: "{{.HOME}}/.config/zsh/completions"
cmds:
- mkdir -p {{.COMP_DIR}}
- rm -f {{.COMP_DIR}}/_*
generate:completions:gen:
internal: true
run: always
deps: [generate:completions:setup]
status: ["! command -v {{.TOOL}}"]
vars:
COMP_DIR: "{{.HOME}}/.config/zsh/completions"
cmds:
- |
if {{.CMD}} > "{{.COMP_DIR}}/_{{.TOOL}}" 2>/dev/null && [ -s "{{.COMP_DIR}}/_{{.TOOL}}" ]; then
printf "{{.OK}} %s\n" "{{.TOOL}}"
else
rm -f "{{.COMP_DIR}}/_{{.TOOL}}"
fi
generate:completions:lsd:
internal: true
deps: [generate:completions:setup]
status: ["! command -v lsd"]
vars:
COMP_DIR: "{{.HOME}}/.config/zsh/completions"
cmds:
- |
src="$(dirname "$(command -v lsd)")/autocomplete/_lsd"
[ -f "$src" ] && cp "$src" "{{.COMP_DIR}}/_lsd" && printf "{{.OK}} lsd (pre-built)\n"
generate:completions:npm:
internal: true
deps: [generate:completions:setup]
status: ["! command -v npm"]
cmds:
- npm completion > "{{.DOTFILES}}/config.d/zsh/conf.d/npm-completion.zsh" 2>/dev/null && printf "{{.OK}} npm (sourced)\n"