Skip to content

Instantly share code, notes, and snippets.

@Venipa
Created January 28, 2023 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Venipa/edf15fa69348fdf34d92dc6c9e8eb969 to your computer and use it in GitHub Desktop.
Save Venipa/edf15fa69348fdf34d92dc6c9e8eb969 to your computer and use it in GitHub Desktop.
behaviour of bash's curly braces
# yarn add example, linux: "yarn add @radix-ui/react-{...}"
("yarn add " + ("alert-dialog,collapsible,context-menu,checkbox,avatar,accordion,dialog,dropdown-menu,hover-card,navigation-menu,popover,menubar,progress,radio-group,scroll-area,select,switch,tabs,toast,toolbar,aspect-ratio".Split(",") | % { "@radix-ui/react-$_" }) -join " ") | Invoke-Expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment