diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-22 23:23:32 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-22 23:23:32 +0200 |
| commit | b043c00c596258f15a592eb5e419f0d86450ece9 (patch) | |
| tree | 356c21b2b114126b79e36bec73c59ea4a9dc3e9e /fish/conf.d/ai.fish | |
| parent | 4359290fa1c6d8f8816307a32213767d60a37f25 (diff) | |
Update
Diffstat (limited to 'fish/conf.d/ai.fish')
| -rw-r--r-- | fish/conf.d/ai.fish | 28 |
1 files changed, 0 insertions, 28 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' |
