summaryrefslogtreecommitdiff
path: root/fish/conf.d/update.fish
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-07 23:46:42 +0200
committerPaul Buetow <paul@buetow.org>2026-02-07 23:46:42 +0200
commitf408ae894e4e10bbf4358c7c07bb9618ef1353e4 (patch)
tree0722f09473a58f1b9027e271cd6bd0e96e7a390d /fish/conf.d/update.fish
parentbf56ef64278a90acab9116311e649e762d39cd34 (diff)
rename
Diffstat (limited to 'fish/conf.d/update.fish')
-rw-r--r--fish/conf.d/update.fish75
1 files changed, 75 insertions, 0 deletions
diff --git a/fish/conf.d/update.fish b/fish/conf.d/update.fish
new file mode 100644
index 0000000..abe9da0
--- /dev/null
+++ b/fish/conf.d/update.fish
@@ -0,0 +1,75 @@
+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 hexai-tmux-action
+ 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
+
+ for prog in tasksamurai timr perc
+ 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 yoga totalrecall
+ 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