Acquire your private api-key from OpenAI.
- Clone this repository into
$ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)
git clone https://github.com/Licheam/zsh-ask ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-ask
- Add the plugin to the list of plugins for Oh My Zsh to load (inside
~/.zshrc
):
plugins=(
# other plugins...
zsh-ask
)
- Add the following to your
.zshrc
:
export ZSH_ASK_API_KEY="<Your API key here>"
- Clone this repository somewhere on your machine. This guide will assume
$HOME/.zsh/zsh-ask
.git clone https://github.com/Licheam/zsh-ask $HOME/.zsh/zsh-ask
- Add the following to your
.zshrc
:export ZSH_ASK_API_KEY="<Your API key here>" source $HOME/.zsh/zsh-ask/zsh-ask.zsh
- Start a new terminal session.
- Remove the code referencing this plugin from
~/.zshrc
. - Remove the git repository from your hard drive.