Add JetBrains toolbox to copy.sh

This commit is contained in:
Sage Vaillancourt 2023-08-26 00:41:41 -04:00
parent 599937b806
commit 081998a894
1 changed files with 13 additions and 0 deletions

13
copy.sh
View File

@ -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"