From 2a11d78908f3b5f2792737e0077767e0eacc9479 Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon <matthew.dillon@klaviyo.com> Date: Thu, 24 Oct 2024 13:11:06 -0400 Subject: [PATCH] feat: convenience function for relative date --- home/dot_zshrc.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index 888a6e2..a652122 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -111,3 +111,7 @@ BASE16_SHELL="$HOME/.config/base16-shell/" eval "$(/opt/homebrew/bin/brew shellenv)" {{ end }} eval "$(direnv hook zsh)" + +function reldate() { + date -v "${1}" "+%Y-%m-%d" +}