4 ms·
Might as well auto generate a header for the file... function lb() { today=$(date '+%Y-%m-%d') fp="/home/you/logbook/${today}.md" if [ ! -f $fp ]
by rmchugh 9y ago
Might as well auto generate a header for the file...
function lb() {
today=$(date '+%Y-%m-%d')
fp="/home/you/logbook/${today}.md"
if [ ! -f $fp ]; then
echo "# ${today}" > $fp
fi
vim $fp
}