Last active
April 16, 2021 12:08
-
-
Save HannesGitH/bf70790accef0773821fd6b83b335292 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
#this should be the directory where all the extensions are installed | |
EXT="$HOME/.local/share/code-server/extensions" | |
cd /tmp | |
ls $EXT | awk -F- '/latex-workshop/ {print $NF}' | while read VER; do | |
echo $VER | |
DIR="$EXT/james-yu.latex-workshop-$VER/" | |
curl -fOL https://james-yu.gallery.vsassets.io/_apis/public/gallery/publisher/james-yu/extension/latex-workshop/$VER/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage | |
unzip /tmp/Microsoft.VisualStudio.Services.VSIXPackage 'extension/out/*' | |
mv /tmp/extension/out $DIR/out | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you might need to change the EXT variable to fit your install