summary refs log tree commit diff
path: root/pkgs/misc
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-11-17 13:32:37 +0100
committerGitHub <noreply@github.com>2021-11-17 13:32:37 +0100
commit72ab57a1680364e5918fe50fc68d386c60fc3d5e (patch)
treeb267ac9d6f54725344472e46169db45979a6f205 /pkgs/misc
parent48de1b8ed836cbe29debd0482829ca010019ea2c (diff)
parenta63f9e1ca11bb1d795e89d3c41b0c5141f198b1a (diff)
downloadnixpkgs-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-xpkgs/misc/vscode-extensions/update_installed_exts.sh16
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