Skip to content

Instantly share code, notes, and snippets.

@shanduur
Last active August 6, 2020 09:38
Show Gist options
  • Save shanduur/8cbdeddc4333f6b9c65f805fe141cab3 to your computer and use it in GitHub Desktop.
Save shanduur/8cbdeddc4333f6b9c65f805fe141cab3 to your computer and use it in GitHub Desktop.

Look at the two files below. One works on Windows, second on MacOS and Linux.

code --list-extensions | % { "code --install-extension $_" } > windows.ps1
#!/bin/sh
code --list-extensions | xargs -L 1 echo code --install-extension > nix.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment