Skip to content

Commit d097c37

Browse files
authored
Merge pull request jessarcher#7 from georanma/patch-1
Add homestead instructions to README
2 parents eb3c696 + c19a965 commit d097c37

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,22 @@ alias serve="artisan serve"
108108

109109
Many more can be found at https://laravel-news.com/bash-aliases
110110

111+
## Homestead Setup
112+
113+
The Zsh Artisan plugin can be installed automatically with any new or provisioned Laravel Homestead instance.
114+
In the root of your Homestead project, add the following to your `after.sh` file.
115+
```bash
116+
ARTISAN=/home/vagrant/.oh-my-zsh/custom/plugins/artisan
117+
if [ -d "$ARTISAN" ]; then
118+
echo "$ARTISAN exist"
119+
else
120+
git clone https://github.com/jessarcher/zsh-artisan.git $ARTISAN
121+
sed -i 's/plugins=(git)/plugins=(git composer artisan)/g' /home/vagrant/.zshrc
122+
source /home/vagrant/.zshrc
123+
fi
124+
```
125+
*Note:* If you are re-provisioning your Homstead box, and already have other Zsh plugins defined in your Zsh config files, you wil need to adjust the `sed` command to includes those in the list.
126+
111127
## License
112128

113129
This project is open-sourced software licensed under the MIT License - see the

0 commit comments

Comments
 (0)