add OpenAI chatgpt CLI, auth key via rbw, completions

This commit is contained in:
2024-10-13 16:19:22 -05:00
parent a18e2b7757
commit f4c0fb2dac
2 changed files with 5 additions and 0 deletions

View File

@@ -6,6 +6,9 @@ export GPG_TTY=$(tty)
export MICRO_TRUECOLOR=1
export TERM=xterm-256color # fixes terminal colors when ssh'ing into laptop
# authentication
export OPENAI_API_KEY="{{ (rbw "OpenAI - chatgpt-cli Key").data.password }}"
# hishtory
export HISHTORY_SERVER="https://hsh.***REMOVED***"
export PATH="$PATH:$HOME/.hishtory"
@@ -26,6 +29,7 @@ export PATH="$HOME/.local/share/bob/nvim-bin:$PATH" # Bob, the Neovim package m
. "$HOME/.cargo/env" # Rustup + Cargo + Cargo-installed tools
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" # Brew
command -v rbenv &> /dev/null && eval "$(rbenv init -)" # rbenv for Ruby
. <(chatgpt --set-completions {{ . -}}) # chatgpt completions
# pyenv, python version manager
export PYENV_ROOT="$HOME/.pyenv"

View File

@@ -1,4 +1,5 @@
# Controlled by chezmoi
alias gpt='chatgpt'
alias copilot='gh copilot'
alias suggest='gh copilot suggest -t shell'
alias cha='chezmoi apply --interactive'