fix readme

This commit is contained in:
2024-05-07 12:25:28 +07:00
parent 90d8cd40e6
commit 49c2ef0faa

View File

@@ -54,16 +54,16 @@ where replace `M` with major, and `m` with minor php version.
##### Using oh-my-zsh from local machine ##### Using oh-my-zsh from local machine
To use already installed `oh-my-zsh` inside docker container we should pass couple volumes and environment variables: To use already installed `oh-my-zsh` inside docker container we should pass couple volumes and environment variables:
* `-v .zshrc:/home/user/.zshrc` - configuration file for `zsh` * `-v ~/.zshrc:/home/user/.zshrc` - configuration file for `zsh`
* `-v .oh-my-zsh:/home/user/oh-my-zsh` - directory with installed `oh-my-zsh` * `-v ~/.oh-my-zsh:/home/user/oh-my-zsh` - directory with installed `oh-my-zsh`
* `-e HOME=/home/user` - define user home directory * `-e HOME=/home/user` - define user home directory
Full run command would be looks like Full run command would be looks like
```bash ```bash
docker run -it --rm \ docker run -it --rm \
-v `pwd`:/var/www/project \ -v `pwd`:/var/www/project \
-v .zshrc:/home/user/.zshrc \ -v ~/.zshrc:/home/user/.zshrc \
-v .oh-my-zsh:/home/user/oh-my-zsh \ -v ~/.oh-my-zsh:/home/user/oh-my-zsh \
-e HOME=/home/user \ -e HOME=/home/user \
-w /var/www/project \ -w /var/www/project \
--user=1000 php-for-dev:M.m zsh --user=1000 php-for-dev:M.m zsh