diff options
author | self <george@gabbott.dev> | 2022-12-30 22:45:24 +0000 |
---|---|---|
committer | self <george@gabbott.dev> | 2022-12-30 22:45:24 +0000 |
commit | 356860574b8f50c03452840474b8b72fc1b6e866 (patch) | |
tree | e4b3241181d0db75ef671a10b071998a1f47f0c1 /zsh | |
parent | e7cb2d49f836f21069efbfdbc213266e93adde6d (diff) |
Fixed some commands by changing from alias to fn
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc-mk | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/zsh/.zshrc-mk b/zsh/.zshrc-mk index 3560cc9..703bc7f 100644 --- a/zsh/.zshrc-mk +++ b/zsh/.zshrc-mk @@ -139,22 +139,23 @@ yer() { # Year End Recap: Y~ # old atd and cld, soon to be gotten rid of anyways # todos... (changed to a~ so it doesn't clash with orgd binaries) -abbrev-alias atd="wr td/todos" -abbrev-alias atdcmp="wr td/todos-cmp" -abbrev-alias atdntd="wr td/todos-ntd" +orgd() { wr "orgd/$1" } +abbrev-alias atd="orgd td/todos" +abbrev-alias atdcmp="orgd td/todos-cmp" +abbrev-alias atdntd="orgd td/todos-ntd" -abbrev-alias cld="wr cld/calendar" -abbrev-alias cldcmp="wr cld/calendar-cmp" -abbrev-alias cldrec="wr cld/calendar-recurring" +abbrev-alias cld="orgd cld/calendar" +abbrev-alias cldcmp="orgd cld/calendar-cmp" +abbrev-alias cldrec="orgd cld/calendar-recurring" # mnfin alias mnfin='cd ~/docs/wr/trk/fin/; nvim $(date +%Y-%m)' # kt: commands for kt (this should really be in orgd, but oh well for now) -abbrev-alias kt="wr orgd/kt" -abbrev-alias bm="wr orgd/kt/bookmark" -abbrev-alias coast="wr orgd/kt/coast" -abbrev-alias bib="wr orgd/kt/biblio" -abbrev-alias bibmanga="wr orgd/kt/biblio-manga" -abbrev-alias bibfut="wr orgd/kt/biblio-fut" -abbrev-alias bibrmfut="wr orgd/kt/biblio-rmfut" # For moved out of fut, but where to keep the notes still +kt() { orgd "kt/$1" } +abbrev-alias bm="kt kt/bookmark" +abbrev-alias coast="kt coast" +abbrev-alias bib="kt biblio" +abbrev-alias bibmanga="kt biblio-manga" +abbrev-alias bibfut="kt biblio-fut" +abbrev-alias bibrmfut="kt biblio-rmfut" # For moved out of fut, but where to keep the notes still |