Skip to content

Instantly share code, notes, and snippets.

@uael
Last active December 16, 2021 08:23
Show Gist options
  • Save uael/6bd503affcd4ea5b224a24e53d109282 to your computer and use it in GitHub Desktop.
Save uael/6bd503affcd4ea5b224a24e53d109282 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ -d "/opt/phpstorm" ]; then rm -rvf /opt/phpstorm/*; else mkdir /opt/phpstorm; fi
curl -L "https://data.services.jetbrains.com/products/download?code=PS&platform=linux" | tar xz -C /opt/phpstorm --strip-components=1
cat > /usr/share/applications/jetbrains-phpstorm.desktop <<'EOL'
[Desktop Entry]
Type=Application
Name=Phpstorm
Icon=/opt/phpstorm/bin/phpstorm.png
Exec=gksudo "/opt/phpstorm/bin/phpstorm.sh" %f
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-phpstorm
EOL
if [ -d "/opt/clion" ]; then rm -rvf /opt/clion/*; else mkdir /opt/clion; fi
curl -L "https://data.services.jetbrains.com/products/download?code=CL&platform=linux" | tar xz -C /opt/clion --strip-components=1
cat > /usr/share/applications/jetbrains-clion.desktop <<'EOL'
[Desktop Entry]
Type=Application
Name=Clion
Icon=/opt/clion/bin/clion.svg
Exec=gksudo "/opt/clion/bin/clion.sh" %f
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-clion
EOL
if [ -d "/opt/webstorm" ]; then rm -rvf /opt/webstorm/*; else mkdir /opt/webstorm; fi
curl -L "https://data.services.jetbrains.com/products/download?code=WS&platform=linux" | tar xz -C /opt/webstorm --strip-components=1
cat > /usr/share/applications/jetbrains-webstorm.desktop <<'EOL'
[Desktop Entry]
Type=Application
Name=Webstorm
Icon=/opt/webstorm/bin/webstorm.svg
Exec=gksudo "/opt/webstorm/bin/webstorm.sh" %f
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-webstorm
EOL
if [ -d "/opt/idea" ]; then rm -rvf /opt/idea/*; else mkdir /opt/idea; fi
curl -L "https://data.services.jetbrains.com/products/download?code=IIU&platform=linux" | tar xz -C /opt/idea --strip-components=1
cat > /usr/share/applications/jetbrains-idea.desktop <<'EOL'
[Desktop Entry]
Type=Application
Name=Idea
Icon=/opt/idea/bin/idea.png
Exec=gksudo "/opt/idea/bin/idea.sh" %f
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea
EOL
if [ -d "/opt/pycharm" ]; then rm -rvf /opt/pycharm/*; else mkdir /opt/pycharm; fi
curl -L "https://data.services.jetbrains.com/products/download?code=PCP&platform=linux" | tar xz -C /opt/pycharm --strip-components=1
cat > /usr/share/applications/jetbrains-pycharm.desktop <<'EOL'
[Desktop Entry]
Type=Application
Name=Pycharm
Icon=/opt/pycharm/bin/pycharm.png
Exec=gksudo "/opt/pycharm/bin/pycharm.sh" %f
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm
EOL
if [ -d "/opt/rider" ]; then rm -rvf /opt/rider/*; else mkdir /opt/rider; fi
curl -L "https://data.services.jetbrains.com/products/download?code=RD&platform=linux" | tar xz -C /opt/rider --strip-components=1
cat > /usr/share/applications/jetbrains-rider.desktop <<'EOL'
[Desktop Entry]
Type=Application
Name=Rider
Icon=/opt/rider/bin/Rider_128.png
Exec=gksudo "/opt/rider/bin/rider.sh" %f
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-rider
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment