summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-22 23:23:32 +0200
committerPaul Buetow <paul@buetow.org>2026-02-22 23:23:32 +0200
commitb043c00c596258f15a592eb5e419f0d86450ece9 (patch)
tree356c21b2b114126b79e36bec73c59ea4a9dc3e9e
parent4359290fa1c6d8f8816307a32213767d60a37f25 (diff)
Update
-rw-r--r--fish/conf.d/ai.fish28
-rw-r--r--fish/conf.d/update.fish11
2 files changed, 7 insertions, 32 deletions
diff --git a/fish/conf.d/ai.fish b/fish/conf.d/ai.fish
index ab2574e..f1281a7 100644
--- a/fish/conf.d/ai.fish
+++ b/fish/conf.d/ai.fish
@@ -1,30 +1,2 @@
-# set -gx HEXAI_PROVIDER copilot
-
-function ai::cursor_agent
- set last_updated_file ~/.cursor_agent_last_updated
- if not test -e $last_updated_file
- cursor-agent update
- touch $last_updated_file
- else
- set current_time (date +%s)
- if test (uname) = Darwin
- set file_time (stat -f %m $last_updated_file 2>/dev/null)
- else
- set file_time (stat -c %Y $last_updated_file 2>/dev/null)
- end
- set time_diff (math "$current_time - $file_time")
- if test $time_diff -gt 86400
- cursor-agent update
- touch $last_updated_file
- end
- end
- touch ~/.nofish
- cursor-agent
-end
-
-function ca
- ai::cursor_agent
-end
-
abbr -a suggest hexai
abbr -a explain 'hexai explain'
diff --git a/fish/conf.d/update.fish b/fish/conf.d/update.fish
index dcac467..5d58bd7 100644
--- a/fish/conf.d/update.fish
+++ b/fish/conf.d/update.fish
@@ -27,6 +27,9 @@ function update::tools
if test -f ~/go/bin/hexai-lsp
rm ~/go/bin/hexai-lsp
end
+ if test -f ~/scripts/taskwarriorfeeder.rb
+ rm ~/scripts/taskwarriorfeeder.rb
+ end
for prog in tasksamurai timr perc loadbars foostore
echo "Installing/updating $prog from codeberg.org/snonux/$prog/cmd/$prog@latest"
@@ -45,11 +48,11 @@ function update::tools
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
+ # 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 goprecords
+ 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