Last active
January 19, 2021 10:35
-
-
Save obar1/e84b5b1e435badf992d073dc2c0d96ff to your computer and use it in GitHub Desktop.
install intellij via cmd line on linux
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 | |
# 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