From aca151492cd482da1200ad51d0dd2dea495e4a3b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 19 Apr 2025 23:46:03 +0300 Subject: add ai --- dotfiles/fish/conf.d/ai.fish | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dotfiles/fish/conf.d/ai.fish diff --git a/dotfiles/fish/conf.d/ai.fish b/dotfiles/fish/conf.d/ai.fish new file mode 100644 index 0000000..d4bad07 --- /dev/null +++ b/dotfiles/fish/conf.d/ai.fish @@ -0,0 +1,19 @@ +# AI tools in here need API keys to be configured. That's +# not done automatically through Rex yet. + +function ai::chatgpt + chatgpt $argv | less +end +alias gpt="ai::chatgpt" +alias gpti="chatgpt --interactive" + +function copilot::suggest + gh copilot suggest $argv +end + +function copilot::explain + gh copilot explain $argv +end + +alias suggest="copilot::suggest" +alias explain="copilot::explain" -- cgit v1.2.3