Add markdown MIME
This commit is contained in:
parent
dd175ba454
commit
745241faa2
1 changed files with 15 additions and 0 deletions
|
@ -50,3 +50,18 @@ git config --global alias.co "checkout"
|
||||||
git config --global alias.st "status"
|
git config --global alias.st "status"
|
||||||
git config --global alias.br "branch"
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue