AI Stuff
This commit is contained in:
@@ -47,11 +47,11 @@ export ANDROID_AVD_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/android/avd"
|
||||
export ANDROID_USER_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/android"
|
||||
|
||||
# Export OPENAI_API_KEY from GitHub Copilot config
|
||||
if [ -f "$HOME/.config/github-copilot/apps.json" ]; then
|
||||
export OPENAI_API_KEY="$(
|
||||
jq -r 'to_entries[0].value.oauth_token' "$HOME/.config/github-copilot/apps.json" 2>/dev/null
|
||||
)"
|
||||
fi
|
||||
# if [ -f "$HOME/.config/github-copilot/apps.json" ]; then
|
||||
# export OPENAI_API_KEY="$(
|
||||
# jq -r 'to_entries[0].value.oauth_token' "$HOME/.config/github-copilot/apps.json" 2>/dev/null
|
||||
# )"
|
||||
# fi
|
||||
|
||||
# Other program settings
|
||||
export DICS="/usr/share/stardicts/dic/"
|
||||
@@ -171,4 +171,11 @@ export NVM_DIR="$HOME/.config/nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
. "$HOME/.local/share/../bin/env"
|
||||
source "$HOME/.local/share/../bin/env"
|
||||
|
||||
env_file="$HOME/.config/shell/.env"
|
||||
if [ -f "$env_file" ]; then
|
||||
set -a
|
||||
source "$env_file"
|
||||
set +a
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user