Add pmdown function for previewing markdown files

pull/50/head
Mark Szymanski 2011-05-27 11:47:55 -05:00
parent 516ce40c4e
commit 4898fa9119
1 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,17 @@ function myip {
echo "Your public IP is: ${bold_green} $res ${normal}"
}
# Function for previewing markdown files in the browser
function pmdown() {
if command -v markdown &>/dev/null
then
markdown $1 | browser
else
echo "You don't have a markdown command installed!"
fi
}
# Make a directory and immediately 'cd' into it
function mkcd() {