This release includes shell integrations for ZSH and Bash.
- Added simple shell integration for ZSH.
- Added simple shell integration for Bash.
- New hidden option
--install-integration
which will update user shell profile.
Shell Integration
Shell integration allows you to use Shell-GPT in your terminal with hotkeys. It is currently available for Bash and ZSH. It will allow you to have sgpt
completions in your shell history, and also edit suggested commands right away.
Shell_GPT_Integration.mp4
Installation
pip install --upgrade shell-gpt
sgpt --install-integration
# Restart your terminal to apply changes.
Usage
In your terminal enter natural language request, and press Ctrl+l
to get shell command suggestion. It will replace your current input line (buffer) with the GPT suggested command.
List all txt files in current folder (Ctrl+l)
# -> ls *.txt
Special thanks to @chinarjoshi