Add utility function to convert a file to markdown

This commit is contained in:
Tony Grosinger 2019-10-18 08:40:08 -07:00
parent 8f54934389
commit 3df11dc306
Signed by: tgrosinger
GPG Key ID: 065559ACE0A9C69C

View File

@ -182,6 +182,11 @@ kubectl_context() {
fi
}
to_md() {
# Convert the input file to markdown and copy to the clipboard
pandoc ${1} -t gfm | xclip -selection clipboard
}
# Prompt
PS1="\n╔ \w\$(git_prompt) \$(kubectl_context)\n╚ \h\$ "