Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to MacOS Overlapping Issue With An Existing Tool #60

Open
atesahmet0 opened this issue Nov 26, 2023 · 1 comment
Open

Solution to MacOS Overlapping Issue With An Existing Tool #60

atesahmet0 opened this issue Nov 26, 2023 · 1 comment

Comments

@atesahmet0
Copy link

I installed gpt-cli via pip through the instructions. When I tried to run it in my terminal as gpt I found out it executes a different tool that exists in MacOS's called "GUID partition table maintenance utility" which located at "/usr/sbin".

Screenshot 2023-11-26 at 16 51 42

To solve this problem I changed gpt-cli's executable's name from "gpt" to "gpt-cli". Now I'm able to run gpt-cli via gpt-cli command in my terminal.

Solution:

Find executable. In my case it was located in "/usr/local/bin" folder. It was named "gpt". To see if it works you can run ./gpt inside the "/usr/local/bin" folder.

Change its name to something you want. I wanted to run gpt-cli via gpt-cli command in my terminal so I changed its name to "gpt-cli". To do this you can execute mv gpt gpt-cli or you can replace "gpt-cli" with something you want.

Screenshot 2023-11-26 at 16 55 46
@atesahmet0
Copy link
Author

Also if you don't want to rename things you can add alias git-cli="/usr/local/bin/gpt to your .zshrc file then you will be able to call git-cli with git-cli command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant