# sudo apt install ruby inotify-tools
# gem install mdless 
# https://github.com/ttscoff/mdless 
# refreshing preview of markdown files                                                                                                                                                                             
mdlive() {                                                                                                                                                                                                         
    while true; do                                                                                                                                                                                                 
        inotifywait -q -e close_write $1;                                                                                                                                                                          
        clear;                                                                                                                                                                                                     
        mdless $1 | cat;                                                                                                                                                                                           
    done                                                                                                                                                                                                           
}