this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

zsh: md preview function

+14
+14
zsh/zshenv
··· 42 42 alias cdz="cd ~/code/zapier" 43 43 fi 44 44 45 + # Accepts a target markdown file and opens it with firefox. 46 + # 47 + # Expects the [markdown viewer](https://github.com/simov/markdown-viewer) 48 + # FF extension to be installed. 49 + function mdp { 50 + local file="${PWD}/${1}" 51 + # if $file does not end with `.md`, bail 52 + if [[ ! "$file" == *".md" ]]; then 53 + echo "Must provide a markdown file" 54 + exit 1 55 + fi 56 + firefox "${file}" 57 + } 58 + 45 59 function rand { 46 60 count=$1 47 61 if [ -z "$count" ]; then