Skip to content

Instantly share code, notes, and snippets.

@ssledz
Created August 26, 2019 14:59
Show Gist options
  • Select an option

  • Save ssledz/4af248ea31a86038c9992b20033b8bef to your computer and use it in GitHub Desktop.

Select an option

Save ssledz/4af248ea31a86038c9992b20033b8bef to your computer and use it in GitHub Desktop.

Revisions

  1. @atais atais created this gist Jun 29, 2016.
    10 changes: 10 additions & 0 deletions intellj-update.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/bash

    IDEA=`tar -tzf $1 | head -1 | cut -f1 -d"/"`

    sudo tar -xf $1 -C /opt/
    sudo chown $(whoami):$(whoami) /opt/$IDEA -R

    sudo rm /opt/idea-IU
    sudo ln -s /opt/$IDEA /opt/idea-IU
    sudo chown $(whoami):$(whoami) /opt/idea-IU