From 73b30f425b46ffb1e3da3c382963e6f11212b60d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 30 Jan 2026 10:23:15 +0200 Subject: fix --- dotfiles/fish/conf.d/ai.fish | 24 +++++++++++++++++++++--- dotfiles/ssh/config | 4 ++-- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/dotfiles/fish/conf.d/ai.fish b/dotfiles/fish/conf.d/ai.fish index aa9c9f1..f36759b 100644 --- a/dotfiles/fish/conf.d/ai.fish +++ b/dotfiles/fish/conf.d/ai.fish @@ -5,12 +5,30 @@ abbr -a explain 'hexai explain' abbr -a aic 'aichat -e' # helix-gpt env vars used -# set -gx COPILOT_MODEL gpt-4.1 # can be changed with aimodels function -set -gx COPILOT_MODEL gpt-4o # can be changed with aimodels function +set -gx COPILOT_MODEL gpt-4.1 # can be changed with aimodels function +#set -gx COPILOT_MODEL gpt-4o # can be changed with aimodels function set -gx HANDLER copilot # set -gx HEXAI_PROVIDER copilot -# TODO: also reconfigure aichat tool using this function +function cur + 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) + set file_time (stat -f %m $last_updated_file) + set time_diff (math $current_time - $file_time) + if test $time_diff -gt 86400 + cursor-agent update + touch $last_updated_file + end + end + touch ~/.nozsh + cursor-agent +end + +# TODO: Probably deprecated function aimodels # nvim for the ai tool wrapper so i can use Copilot Chat from the command line. set -l NVIM_DIR "$HOME/.config/nvim/" diff --git a/dotfiles/ssh/config b/dotfiles/ssh/config index 503f117..5824103 100644 --- a/dotfiles/ssh/config +++ b/dotfiles/ssh/config @@ -1,5 +1,5 @@ -ControlPath ~/.ssh/cp-%C -ControlMaster auto +#ControlPath ~/.ssh/cp-%C +#ControlMaster auto #UseKeychain yes AddKeysToAgent yes ControlPersist 60m -- cgit v1.2.3