Created
April 6, 2025 06:42
-
-
Save Enzime/5772544bbd4dea86896a1e73ca23797b to your computer and use it in GitHub Desktop.
Extracts VSCode Remote SSH script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
cat $(NIXPKGS_ALLOW_UNFREE=1 nix build --impure ln\#vscode-extensions.ms-vscode-remote.remote-ssh --json --out-link $(mktemp -d)/link | jq -r '.[0].outputs.out')/share/vscode/extensions/ms-vscode-remote.remote-ssh/out/extension.js | rg --only-matching --multiline-dotall --multiline 'echo "\$\{a\.getScriptStartMarker.*?\}\\n`;' | sed 's/\\n/\n/g' | sed 's/\\t/ /g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment