diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-11-17 13:32:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 13:32:37 +0100 |
commit | 72ab57a1680364e5918fe50fc68d386c60fc3d5e (patch) | |
tree | b267ac9d6f54725344472e46169db45979a6f205 /pkgs/misc | |
parent | 48de1b8ed836cbe29debd0482829ca010019ea2c (diff) | |
parent | a63f9e1ca11bb1d795e89d3c41b0c5141f198b1a (diff) | |
download | nixpkgs-72ab57a1680364e5918fe50fc68d386c60fc3d5e.tar nixpkgs-72ab57a1680364e5918fe50fc68d386c60fc3d5e.tar.gz nixpkgs-72ab57a1680364e5918fe50fc68d386c60fc3d5e.tar.bz2 nixpkgs-72ab57a1680364e5918fe50fc68d386c60fc3d5e.tar.lz nixpkgs-72ab57a1680364e5918fe50fc68d386c60fc3d5e.tar.xz nixpkgs-72ab57a1680364e5918fe50fc68d386c60fc3d5e.tar.zst nixpkgs-72ab57a1680364e5918fe50fc68d386c60fc3d5e.zip |
Merge pull request #145961 from SuperSandro2000/vscode-extensions
Diffstat (limited to 'pkgs/misc')
-rwxr-xr-x | pkgs/misc/vscode-extensions/update_installed_exts.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/misc/vscode-extensions/update_installed_exts.sh b/pkgs/misc/vscode-extensions/update_installed_exts.sh index 8e0af182cec..5af747605f5 100755 --- a/pkgs/misc/vscode-extensions/update_installed_exts.sh +++ b/pkgs/misc/vscode-extensions/update_installed_exts.sh @@ -1,7 +1,23 @@ #! /usr/bin/env nix-shell #! nix-shell -i bash -p curl jq unzip +# shellcheck shell=bash set -eu -o pipefail +# can be added to your configuration with the following command and snippet: +# $ ./pkgs/misc/vscode-extensions/update_installed_exts.sh > extensions.nix +# +# packages = with pkgs; +# (vscode-with-extensions.override { +# vscodeExtensions = map +# (extension: vscode-utils.buildVscodeMarketplaceExtension { +# mktplcRef = { +# inherit (extension) name publisher version sha256; +# }; +# }) +# (import ./extensions.nix).extensions; +# }) +# ] + # Helper to just fail with a message and non-zero exit code. function fail() { echo "$1" >&2 |