beyondcode / herd-community

84 stars 1 forks source link

[Bug]: Restore CLI functionality after ohmyzsh install #58

Closed KiritoXD01 closed 1 year ago

KiritoXD01 commented 1 year ago

Operating system version

macOS Ventura 13.5

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.0.8

PHP Version

No response

Bug description

This is more of an advice for people who started fresh and installed Herd and them when to install ohmyzsh which overwrites the .zshrc file, then PHP, composer and the laravel installer won't work, here is what you need to do:

After you install ohmyzsh, go to the .zshrc file and add this at the end:

export PATH="/Users/YOUR USER/Library/Application Support/Herd/bin/":$PATH export PHP_INI_SCAN_DIR="/Users/YOUR USER/Library/Application Support/Herd/config/php/":$PHP_INI_SCAN_DIR

Remember to replace your user with your actual user, or use the env variable (I don't remember it)

Steps to reproduce

Install Laravel Herd and then ohmyzsh

Relevant log output

No response

mpociot commented 1 year ago

I'll make sure to add this to the documentation, thanks for bringing it up!