Preview Markdown file via terminal.
- Python 2.7 or later
- markdown2
- w3m
- bash-completion
cp files/mdv.yaml /etc
cp files/mdv.bash /etc/bash-completion.d
. /etc/bash-completion.d/mdv.bash
complete -F _filedir_mdv mdv
ln -s ./mdv.py /usr/local/bin/mdvJust run with specifying markdown file you want to preview.
mdv README.mdBesides, you can set default directory where you store markdown files in /etc/mdv.yaml.
DefaultDir = ~/work/project/ABC/docIn this case the following 2 excecutions have the same meaning.
mdv ~/work/project/ABC/doc/README.md
mdv -d README.mdIt can be a shortcut that you don't have to specify all the long path name. You can get filenames under default directory by hitting TAB after "mdv -d".