Skip to content

Instantly share code, notes, and snippets.

@nrdobie
Last active February 12, 2018 12:26
Show Gist options
  • Save nrdobie/6151381 to your computer and use it in GitHub Desktop.
Save nrdobie/6151381 to your computer and use it in GitHub Desktop.
Install RubyMine on Fedora. Run file as `root`. When RubyMine asks you to install you can just ignore it.
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=RubyMine 6.3
Comment=Edit text files
Exec=/usr/local/ruby-mine/bin/rubymine.sh
Icon=/usr/local/ruby-mine/bin/RMlogo.svg
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;Ruby;Development;"
SCRIPT="#!/bin/sh
if [ \${1} == \"--help\" ]; then
/usr/local/ruby-mine/bin/rubymine.sh --help
else
/usr/local/ruby-mine/bin/rubymine.sh \$@ > /dev/null 2>&1 &
fi"
curl -L "http://download.jetbrains.com/ruby/RubyMine-6.3.1.tar.gz" -o "/usr/src/RubyMine.tar.gz"
cd /usr/src
tar -zxvf "RubyMine.tar.gz"
cd "RubyMine-6.3.1"
mkdir -pv "/usr/local/ruby-mine"
mv -fv * "/usr/local/ruby-mine/"
echo "${SCRIPT}" > "/usr/local/bin/rubymine"
chmod +x "/usr/local/bin/rubymine"
echo "${SHORTCUT}" > "/usr/share/applications/ruby-mine.desktop"
echo "Finish!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment