Created
January 22, 2017 19:54
-
-
Save smutek/043241441ea1170d675ab0f0179be03e to your computer and use it in GitHub Desktop.
Setup Sublime Text 3 on Fedora 25 - Assumes Sublime has been downloaded and moved to /opt/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHORTCUT="[Desktop Entry] | |
Name=Sublime Text 3 | |
Comment=Edit text files | |
Exec=/opt/sublime-text-3/sublime_text | |
Icon=/opt/sublime-text-3/Icon/128x128/sublime-text.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;TextEditor;" | |
SCRIPT="#!/bin/sh | |
if [ -z ${1} == "--help" ]; then | |
/opt/sublime-text-3/sublime_text --help | |
else | |
/opt/sublime-text-3/sublime_text $@ > /dev/null 2>&1 & | |
fi" | |
echo "${SCRIPT}" > "/usr/local/bin/subl" | |
chmod +x "/usr/local/bin/subl" | |
echo "${SHORTCUT}" > "/usr/share/applications/sublime-text-3.desktop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment