Last active
November 3, 2023 16:21
-
-
Save alexanderankin/badc4a7202c846a5745dd2a51853c831 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
https://plugins.jetbrains.com/plugin/download?rel=true&updateId=424435 | |
# https://stackoverflow.com/q/24044513 | |
wget -qO- https://plugins.jetbrains.com/files/$(curl https://plugins.jetbrains.com/api/plugins/4415/updates | jq -r '.[0].file') | bsdtar -xvf- -C ~/.PhpStorm2018.3/config/plugins | |
https://plugins.jetbrains.com/api/plugins/17718/updates | |
file=$(curl https://plugins.jetbrains.com/api/plugins/17718/updates -fSsL | jq .[0].file -r) | |
curl -O https://plugins.jetbrains.com/files/$file | |
intellij_plugins="/c/Program Files (x86)/Jetbrains/Intellij.../plugins" | |
unzip $file -d "$intellij_plugins" | |
# Setting the TLS version to ensure compatibility with HTTPS requests | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
# Getting the file information from the JetBrains plugin API | |
$response = Invoke-RestMethod -Uri 'https://plugins.jetbrains.com/api/plugins/17718/updates' -Method Get | |
# Parsing the first file in the response | |
$file = $response[0].file | |
# Downloading the file | |
Invoke-WebRequest -Uri "https://plugins.jetbrains.com/files/$file" -OutFile "$file" | |
# Use a specific file name | |
$fileName = "plugin.zip" | |
Invoke-WebRequest -Uri "https://plugins.jetbrains.com/files/$file" -OutFile $fileName | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.config/JetBrains/IntelliJIdea2023.2/options/github-copilot.xml