mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 04:24:10 -06:00
add OpenAI chatgpt CLI, auth key via rbw, completions
This commit is contained in:
@@ -6,6 +6,9 @@ export GPG_TTY=$(tty)
|
|||||||
export MICRO_TRUECOLOR=1
|
export MICRO_TRUECOLOR=1
|
||||||
export TERM=xterm-256color # fixes terminal colors when ssh'ing into laptop
|
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
|
# hishtory
|
||||||
export HISHTORY_SERVER="https://hsh.***REMOVED***"
|
export HISHTORY_SERVER="https://hsh.***REMOVED***"
|
||||||
export PATH="$PATH:$HOME/.hishtory"
|
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
|
. "$HOME/.cargo/env" # Rustup + Cargo + Cargo-installed tools
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" # Brew
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" # Brew
|
||||||
command -v rbenv &> /dev/null && eval "$(rbenv init -)" # rbenv for Ruby
|
command -v rbenv &> /dev/null && eval "$(rbenv init -)" # rbenv for Ruby
|
||||||
|
. <(chatgpt --set-completions {{ . -}}) # chatgpt completions
|
||||||
|
|
||||||
# pyenv, python version manager
|
# pyenv, python version manager
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Controlled by chezmoi
|
# Controlled by chezmoi
|
||||||
|
alias gpt='chatgpt'
|
||||||
alias copilot='gh copilot'
|
alias copilot='gh copilot'
|
||||||
alias suggest='gh copilot suggest -t shell'
|
alias suggest='gh copilot suggest -t shell'
|
||||||
alias cha='chezmoi apply --interactive'
|
alias cha='chezmoi apply --interactive'
|
||||||
|
|||||||
Reference in New Issue
Block a user