From 081998a894519bb3bbea87a7f47273770aa1e3b7 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 26 Aug 2023 00:41:41 -0400 Subject: [PATCH] Add JetBrains toolbox to copy.sh --- copy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/copy.sh b/copy.sh index d235f8e..cfe9bab 100755 --- a/copy.sh +++ b/copy.sh @@ -74,4 +74,17 @@ else echo "already installed." fi +echo "JetBrains toolbox is " +if ! test -f $HOME/.config/JetBrains/; then + echo "not installed. Installing..." + ARCHIVE_URL="$(curl -s 'https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release' | grep -Po '"linux":.*?[^\\]",' | awk -F ':' '{print $3,":"$4}'| sed 's/[", ]//g')" + wget -q --show-progress -cO "/tmp/jetbrains-toolbox-latest.tar.gz" "$ARCHIVE_URL" + cd /tmp/ + tar -xvf jetbrains-toolbox-latest.tar.gz --strip-components=1 + chmod +x jetbrains-toolbox + ./jetbrains-toolbox +else + echo "already installed." +fi + echo "You may wish to install fzf for sofi and other search"