Skip to content

Instantly share code, notes, and snippets.

@tjstebbing
Last active June 20, 2016 03:28

Revisions

  1. Pomke Nohkan revised this gist Jun 20, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions mdless.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    ## mdless

    Read markdown files in your terminal

    ```bash
    cd ~/code
    git clone git@github.com:axiros/terminal_markdown_viewer.git
  2. Pomke Nohkan revised this gist Jun 20, 2016. 1 changed file with 18 additions and 1 deletion.
    19 changes: 18 additions & 1 deletion mdless.md
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,21 @@ Now you can happily:
    mdless README.md
    ```

    to your heart's content :)

    ## swagger extension:

    ```bash
    npm install -g swagger-markup
    ```

    Then add the following to your .bashrc/.zshrc

    ```bash
    swagless () { swagger-markup -f markdown "$@" > "/tmp/$@" && mdless "/tmp/$@" ; }
    ```

    Now you can:

    ```bash
    swagless swagger.yml
    ```
  3. Pomke Nohkan revised this gist May 18, 2016. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion mdless.md
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,12 @@ Then add the following to your .bashrc/.zshrc

    ```bash
    mdless () { /Users/yourname/code/terminal_markdown_viewer/mdv.py -t 994.0134 -T 627.2501 "$@" | less; }
    ```
    ```

    Now you can happily:

    ```bash
    mdless README.md
    ```

    to your heart's content :)
  4. Pomke Nohkan created this gist May 18, 2016.
    12 changes: 12 additions & 0 deletions mdless.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    ```bash
    cd ~/code
    git clone git@github.com:axiros/terminal_markdown_viewer.git
    cd terminal_markdown_viewer
    pip install markdown pygments pyyaml
    ```

    Then add the following to your .bashrc/.zshrc

    ```bash
    mdless () { /Users/yourname/code/terminal_markdown_viewer/mdv.py -t 994.0134 -T 627.2501 "$@" | less; }
    ```