Created
March 13, 2023 07:56
-
-
Save charlie-collard/12d6b4a8049c69c832df7c4fd1d3001d to your computer and use it in GitHub Desktop.
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
if set -q argv[1] | |
set offset $argv[1] | |
else | |
set offset 0 | |
end | |
if test $offset -ge 0 | |
set offset +$offset | |
end | |
vim (date --date="$offset days" +"$HOME/Dropbox/docs/diaries/%Y/%Y-%m-%d-%a.md") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment