tbckr / sgpt

SGPT is a command-line tool that provides a convenient way to interact with OpenAI models, enabling users to run queries, generate shell commands and produce code directly from the terminal.
MIT License
261 stars 25 forks source link

create and use shorthands/aliases #29

Closed tbckr closed 1 year ago

tbckr commented 1 year ago

similiar to aliases in bash there are recurring tasks. example prompt: 'sgpt "Generate git commit message, my changes: $(git diff)"'

make it possible to add shorthands or aliases to reference and reuse existing prompts.

tbckr commented 1 year ago

one could use bash aliases to mimic this behaviour

tbckr commented 1 year ago

examples are collected in .bash_aliases

tbckr commented 1 year ago

use bash aliases (e.g. https://github.com/tbckr/sgpt/blob/c688f5d10c764f2d9aa0a1f8152685bc2d79d6e1/.bash_aliases)