summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/fish/conf.d/ai.fish47
1 files changed, 4 insertions, 43 deletions
diff --git a/dotfiles/fish/conf.d/ai.fish b/dotfiles/fish/conf.d/ai.fish
index 5f5d0cd..8e8b0c8 100644
--- a/dotfiles/fish/conf.d/ai.fish
+++ b/dotfiles/fish/conf.d/ai.fish
@@ -1,16 +1,6 @@
-abbr -a gpt chatgpt
-abbr -a gpti "chatgpt --interactive"
-abbr -a suggest hexai
-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 HANDLER copilot
# set -gx HEXAI_PROVIDER copilot
-function cool
+function ai::cursor_agent
set last_updated_file ~/.cursor_agent_last_updated
if not test -e $last_updated_file
cursor-agent update
@@ -28,35 +18,6 @@ function cool
cursor-agent
end
-function cur
- cool
-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/"
- set -l COPILOT_CHAT_DIR "$NVIM_DIR/pack/copilotchat/start/CopilotChat.nvim/lua/CopilotChat"
-
- printf "gpt-4o
-gpt-5
-gpt-o3
-gpt-4.1
-claude-3.7-sonnet
-claude-3.7-sonnet-thought
-claude-4.0-sonnet
-gemini-2.5-pro" >~/.aimodels
-
- set -gx COPILOT_MODEL (cat ~/.aimodels | fzf)
- set -gx OPENAI_MODEL $COPILOT_MODEL
-
- if test -d $COPILOT_CHAT_DIR
- set -l model_config "$COPILOT_CHAT_DIR/config-$COPILOT_MODEL.lua"
- if test -f "$model_config"
- echo "Using CopilotChat config from $model_config"
- cp -v $model_config "$COPILOT_CHAT_DIR/config.lua"
- else
- echo "No config found at $model_config"
- end
- end
-end
+abbr -a suggest hexai
+abbr -a explain 'hexai explain'
+abbr -a a ai::cursor_agent