From e3cfaa6fb9e2a88d725aaf5d3fc19192d607a0ab Mon Sep 17 00:00:00 2001 From: David Ibia Date: Sat, 8 Mar 2025 16:19:28 +0100 Subject: [PATCH] chore: update .rgignore to include necessary files for project configuration chore: add loading of OpenAI Secrets in .zshrc if setup.sh file exists --- .rgignore | 3 +++ .zshrc | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.rgignore b/.rgignore index e69de29..8d82efe 100644 --- a/.rgignore +++ b/.rgignore @@ -0,0 +1,3 @@ +!.config/openai/setup.sh +!.opencommit +!.env diff --git a/.zshrc b/.zshrc index c5623e2..1e4ed99 100644 --- a/.zshrc +++ b/.zshrc @@ -269,6 +269,12 @@ export PATH=$HOME/flutter/bin:$PATH export XDG_CONFIG_HOME="$HOME/.config" +# Load OpenAI Secrets if it exists +# .config/openai/setup.sh + +if [ -f "$HOME/.config/openai/setup.sh" ]; then + source "$HOME/.config/openai/setup.sh" +fi PATH="$HOME/perl5/bin${PATH:+:${PATH}}"; export PATH; PERL5LIB="$HOME/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;