mattvr / ShellGPT

Upgrade your terminal with GPT-4. Ask questions, automate commands, pipe I/O, etc. Made with Deno.
MIT License
232 stars 11 forks source link

System already had the same command? #16

Closed siygle closed 8 months ago

siygle commented 8 months ago

Sorry for asking. I'm using Mac and seem it already have the same "gpt" command in the system:

 gpt – GUID partition table maintenance utility

Is that possible to allow users can rename the default command name?

felipecrs commented 8 months ago

You can choose your own name this way:

deno install --reload --allow-all https://deno.land/x/shellgpt/mod.ts --name othergpt
siygle commented 8 months ago

Thanks!

felipecrs commented 8 months ago

lol, it was just a tip from another user btw. Maybe @mattvr can comment on whether changing the default name is a good idea or not.

mattvr commented 8 months ago

@siygle Yeah, there are two options:

  1. The included install script should let you select what you want the command to be called. You could make it ai, chat, etc. – I guess that might not have worked or been missed?
  2. If you make sure deno's binary comes before your existing $PATH, i.e. export PATH="$HOME/.deno/bin:$PATH", it should also avoid the issue.
siygle commented 8 months ago

@mattvr Thanks for the reply. (Yes, I did miss the message during the install script, really sorry about that).

However, I just found another strange situation. After I installed the ShellGpt, it kept displaying the upgrade message as follows:

image

But even if I run the command in the message

deno run -A https://deno.land/x/shellgpt/install.ts

This message keeps jumping out. (I really want to upgrade to 0.3.6 to test the new feature OPENAI_CHAT_URL for the local model). Is that possible to come from the different VERSION at here?

mattvr commented 8 months ago

Hey, yes @siygle. Sorry that was an issue in that version. If you update now, it should be fixed.