Created
June 2, 2017 06:57
-
-
Save kennethho/e280e1b020603bed01c0650d0b9bed33 to your computer and use it in GitHub Desktop.
s/gedit/sublime/ - sublime as default text editor
This file contains hidden or 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
( head -n 1 /usr/share/applications/defaults.list && ack --match '^(?<mimetype>.+)=gedit.desktop$' --output '$+{mimetype}=sublime-text.desktop' /usr/share/applications/defaults.list ) | tee ~/.local/share/applications/defaults.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment