@@ -121,6 +121,12 @@ import ujson
121121# No module named 'ujson' # YES because ujson was installed in `base` environment
122122```
123123
124+ On Mac we also recommend to install [ GNU coreutils] ( https://www.gnu.org/software/coreutils/ ) to use the Linux default tools (i.e. ` ls ` , ` grep ` ):
125+ ``` xsh
126+ brew install coreutils
127+ $ PATH .append(' /opt/homebrew/opt/coreutils/libexec/gnubin' ) # add to ~/.xonshrc
128+ ```
129+
124130#### How to understand the xonsh location
125131
126132Which xonsh and which Python used to run ** current** xonsh session:
@@ -159,37 +165,6 @@ pipx run xonsh
159165# or add /home/$USER/.local/bin to PATH (/etc/shells) to running just `xonsh` command
160166```
161167
162- ### pyenv and xonsh
163-
164- Following the article "[ Installing Python on macOS without going insane] ( https://eddieantonio.ca/blog/2020/01/26/installing-python-on-macos/ ) ":
165- ``` zsh
166- zsh # Default macOS shell
167-
168- # Install brew from https://brew.sh/
169- /bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) "
170-
171- # Install pyenv and then install Python
172- brew install pyenv
173- echo ' export PATH="$HOME/.pyenv/shims:$PATH"' >> ~ /.zshrc
174- # restart zsh
175- pyenv install --list | grep ' 3.' | tail # Choose the Python version
176- pyenv install 3.10.6
177- pyenv global 3.10.6
178-
179- # The article recommend to use pipx to install global Python tools
180- brew install pipx
181- pipx install ' xonsh[full]'
182-
183- # Use xonsh `xpip` to install xontribs to appropriate packages location
184- xonsh
185- xpip install xontrib-prompt-bar xontrib-back2dir
186- ```
187- On Mac we also recommend to install [ GNU coreutils] ( https://www.gnu.org/software/coreutils/ ) to use the Linux default tools (i.e. ` ls ` , ` grep ` ):
188- ``` xsh
189- brew install coreutils
190- $ PATH .append(' /opt/homebrew/opt/coreutils/libexec/gnubin' ) # add to ~/.xonshrc
191- ```
192-
193168### Try xonsh without installation
194169
195170#### Docker
0 commit comments