blob: c04301efee8e4904c7c5665325bf58cb25b1e2ed (
plain)
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
|
function update::tools
set pids
echo "Installing/updating gofumpt"
go install mvdan.cc/gofumpt@latest &
set -a pids $last_pid
echo "Installing/updating mage"
go install github.com/magefile/mage@latest &
set -a pids $last_pid
echo "Installing/updating golangci-lint"
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest &
set -a pids $last_pid
echo "Installing/updating goimports"
go install golang.org/x/tools/cmd/goimports@latest &
set -a pids $last_pid
for prog in hexai hexai-lsp-server hexai-tmux-action hexai-tmux-edit hexai-mcp-server do
echo "Installing/updating $prog from codeberg.org/snonux/hexai/cmd/$prog@latest"
go install codeberg.org/snonux/hexai/cmd/$prog@latest &
set -a pids $last_pid
end
if test -f ~/go/bin/ask
if test -f ~/go/bin/do
# Only remove the ask command when the do command is already installed!
rm ~/go/bin/ask
end
end
for prog in tasksamurai timesamurai gt loadbars
echo "Installing/updating $prog from codeberg.org/snonux/$prog/cmd/$prog@latest"
go install codeberg.org/snonux/$prog/cmd/$prog@latest &
set -a pids $last_pid
end
if test (uname) = Darwin
echo 'Updating cursor-agent on macOS'
cursor-agent update &
end
set -a pids $last_pid
echo 'Updating claude'
claude update &
set -a pids $last_pid
if test (uname) = Linux
# echo "Installing/updating tgpt"
# go install github.com/aandrew-me/tgpt/v2@latest &
# set -a pids $last_pid
for prog in gos gitsyncer totalrecall goprecords
echo "Installing/updating $prog from codeberg.org/snonux/$prog/cmd/$prog@latest"
go install codeberg.org/snonux/$prog/cmd/$prog@latest
end
# doas npm uninstall -g @qwen-code/qwen-code@latest
# doas npm install -g @qwen-code/qwen-code@latest
echo "Installing/updating @openai/codex globally via npm"
doas npm uninstall -g @openai/codex
doas npm install -g @openai/codex
echo "Installing/updating @google/gemini-cli globally via npm"
doas npm uninstall -g @google/gemini-cli
doas npm install -g @google/gemini-cli
echo "Installing/updating @sourcegraph/amp globally via npm"
doas npm uninstall -g @sourcegraph/amp
doas npm install -g @sourcegraph/amp
echo "Installing/updating opencode-ai globally via npm"
doas npm uninstall -g opencode-ai
doas npm install -g opencode-ai
end
for pid in $pids
wait $pid
end
end
|