chatgpt-shell icon indicating copy to clipboard operation
chatgpt-shell copied to clipboard

The best way to install the perfect chatgpt-shell by straight.el

Open Mercurius-Lee opened this issue 1 year ago • 2 comments

(use-package shell-maker :straight (:type git :host github :repo: "xenodium/chatgpt-shell" :local-repo "chatgpt-shell" :files ("shell*.el")))

(use-package chatgpt-shell :straight (:type git :host github :repo: "xenodium/chatgpt-shell" :local-repo "chatgpt-shell" :files (:defaults (:exclude "shell*.el"))) :config (setq chatgpt-shell-openai-key (lambda () (auth-source-pick-first-password :host "api.openai.com"))))

Mercurius-Lee avatar Aug 10 '23 15:08 Mercurius-Lee

Thank you. Would you like to amend the README?

xenodium avatar Aug 10 '23 15:08 xenodium

I'm not a straight user.. Compared to what's in the README (contributed by others), what is the benefit to the suggestion? The README currently has the following, which seems simpler?

(use-package shell-maker
  :straight (:host github :repo "xenodium/chatgpt-shell" :files ("shell-maker.el")))

(use-package chatgpt-shell
  :requires shell-maker
  :straight (:host github :repo "xenodium/chatgpt-shell" :files ("chatgpt-shell.el")))

xenodium avatar Aug 12 '23 19:08 xenodium

Update now that shell-maker is in it's own repo:

(use-package shell-maker :straight (:type git :host github :repo: "xenodium/shell-maker" :local-repo "shell-maker" :files ("shell*.el")))

kmcclosk avatar Dec 06 '24 20:12 kmcclosk

Thanks for this issue, it put me on the right tracks.

This is what got it working for me

(use-package shell-maker
  :straight (:type git :host github :repo "xenodium/shell-maker" :files ("shell-maker*.el")))

(use-package chatgpt-shell
  :straight (:type git :host github :repo "xenodium/chatgpt-shell" :files ("chatgpt-shell*.el"))
  :custom
  (chatgpt-shell-openai-key "<insert_your_key_here>"))

Horrih avatar Jan 06 '25 13:01 Horrih

@Horrih thanks. Things changed when I split the project up into multiple repos for multi-model support https://lmno.lol/alvaro/chatgpt-shell-repo-splits-up

Added straight instructions: https://github.com/xenodium/chatgpt-shell?tab=readme-ov-file#straight

xenodium avatar Jan 06 '25 20:01 xenodium