Leigh Johnson

Square brackets are interpreted as a pattern on the command line. Two improvements over the default behavior.

Originally published via bitsy.ai

I’ve been using zsh and ohmyz.sh for years, but I still occasionally forget this shell interprets square brackets as a pattern on the command line.

Here’s an example:

$ which $SHELL
/usr/bin/zsh
$ pip install -e .[develop,plugins]
zsh: no matches found: [develop,plugins]

Instead of installing the…

--

--

Leigh Johnson

Leigh Johnson

Building https://www.print-nanny.com/. Head to https://bitsy.ai/ for more Applied ML and Edge ML projects. Google Developer Expert. Staff ML Eng @ Slack.