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"