diff options
author | otg <otg@sateoki.xyz> | 2022-04-28 17:37:50 +0100 |
---|---|---|
committer | otg <otg@sateoki.xyz> | 2022-04-28 17:37:50 +0100 |
commit | 442538620ef5790dbaa0715fc9dafca72896fc80 (patch) | |
tree | b205be3fe4438a37b0e001b5a2d3d4038298aa96 /zsh/.zshrc | |
parent | 6861b1560127e68b8da2eb1fb657b47acfc84cad (diff) |
Tidied up lle, mer, yer (although unintuitive functionality in comment does still stand)
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r-- | zsh/.zshrc | 26 |
1 files changed, 4 insertions, 22 deletions
@@ -148,38 +148,20 @@ alias r="prime-run newsboat" # lle... TODO: maybe find a way to make these take up less room in the zshrc? lle() { # Life Log Entry - if [ -z "$1" ]; then - mkdir -p ~/docs/daily-log/$(date +%Y-%m) - nvim ~/docs/daily-log/$(date +%Y-%m)/L$(date --iso-8601).txt - else - mkdir -p ~/docs/daily-log/$(date +%Y-%m -d $1) - nvim ~/docs/daily-log/$(date +%Y-%m -d $1)/L$(date --iso-8601 -d $1).txt - fi + mkdir -p ~/docs/daily-log/$(date +%Y-%m -d $1) + nvim ~/docs/daily-log/$(date +%Y-%m -d $1)/L$(date --iso-8601 -d $1).txt } mer() { # Month End Recap - TODO: get this to work just with e.g. mer 2022-01 - if [ -z "$1"]; then - mkdir -p ~/docs/daily-log/$(date +%Y-%m) - nvim "~/docs/daily-log/$(date +%Y-%m)/L$(date +%Y-%m) - Month End Recap" - else - mkdir -p /mnt/Shared/Text/daily-log/$(date +%Y-%m -d $1) - nvim "~/docs/daily-log/$(date +%Y-%m -d $1)/L$(date +%Y-%m -d $1) - Month End Recap" - fi + mkdir -p ~/docs/daily-log/$(date +%Y-%m -d $1) + nvim "~/docs/daily-log/$(date +%Y-%m -d $1)/L$(date +%Y-%m -d $1) - Month End Recap" } yer() { # Year End Recap - TODO: see mer TODO - if [ -z "$1"]; then - mkdir -p ~/docs/daily-log/$(date +%Y)-12 - nvim "~/docs/daily-log/$(date +%Y)-12/$(date +%Y) - Year End Recap" - else mkdir -p ~/docs/daily-log/$(date %Y -d $1)-12 nvim "~/docs/daily-log/$(date +%Y -d $1)-12/$(date +%Y -d $1) - Year End Recap" - fi } - - - mn() { # make note nvim "$HOME/docs/written/$1" } |