- None
Last active
April 23, 2021 18:26
-
-
Save benwestrate/b1e371e691a56ca252504c816b50d4b3 to your computer and use it in GitHub Desktop.
Daily Status Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Pandoc https://pandoc.org/index.html | |
brew install pandoc | |
# Download status.md and place it somewhere easy to remember | |
# I placed mine in my dotfiles repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following can be added to your bashrc or zshrc | |
# Copies the status.md you downloaded into a status folder | |
# and opens it in your favorite editior | |
function newStatus() { | |
cp $HOME/dotfiles/status.md $HOME/NOTES/status_updates/$(date +"%Y-%m-%d").md | |
code $HOME/NOTES/status_updates/$(date +"%Y-%m-%d").md | |
} | |
# Takes one argment of the file path of your markdown and creates a *.rtf of the | |
# markdown status update. It then opens that rtf file for you to easily copy the contents | |
function md(){ | |
filename=$1 | |
name=$(echo "$filename" | cut -f 1 -d '.') | |
pandoc -s $filename -o $name.rtf | |
open $name.rtf | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment