Add markdown MIME

This commit is contained in:
flyingscorpio@pinebook-pro 2020-02-27 09:36:36 +01:00
parent dd175ba454
commit 745241faa2

View file

@ -50,3 +50,18 @@ git config --global alias.co "checkout"
git config --global alias.st "status"
git config --global alias.br "branch"
##############################################################################
# Add MIME type for reading .md files in Firefox (need to add extension too) #
##############################################################################
if [ -e ~/.local/share/mime/packages/text-markdown.xml ]; then
echo "<?xml version='1.0'?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type='text/plain'>
<glob pattern='*.md'/>
<glob pattern='*.mkd'/>
<glob pattern='*.markdown'/>
</mime-type>
</mime-info>" >> ~/.local/share/mime/packages/text-markdown.xml
fi