Skip to content

Instantly share code, notes, and snippets.

@obar1
Last active January 19, 2021 10:35
Show Gist options
  • Save obar1/e84b5b1e435badf992d073dc2c0d96ff to your computer and use it in GitHub Desktop.
Save obar1/e84b5b1e435badf992d073dc2c0d96ff to your computer and use it in GitHub Desktop.
install intellij via cmd line on linux
#!/bin/bash
# product donwload
# wget this
# source this
# use in cmd line // download_untar PE
jb_info() {
wget -O- https://plugins.jetbrains.com/docs/marketplace/product-codes.html | sed 's/<[^>]*>/ /g'
# check https://plugins.jetbrains.com/docs/marketplace/product-codes.html
}
jb_download_untar() {
p_code=$1
target_folder="/opt/"$p_code
sudo mkdir -p $target_folder
sudo curl -L "https://download.jetbrains.com/product?code=${p_code}&latest&distribution=linux" | sudo tar xvz -C $target_folder --strip 1
ls -r "${target_folder}"/bin/*.sh
echo "add symbolic link ;)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment