[SOLVED] Installing multiple packages with a substring in common

Let’s say that I wanted to install multiple packages that started with the string “ttf-”. Under zsh, I know I could do something like sudo pacman -S ttf-[pkg1,pkg2,pkg3] to keep from having to type “ttf-” over and over again. How does this work under bash? It’s difficult to look this up because I don’t know what this construct is called.

Nevermind! It turns out this is called “brace expansion” and I had the syntax wrong (it uses curly brackets, not square ones).

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.