summaryrefslogtreecommitdiff
path: root/zsh/.zshrc-mk
diff options
context:
space:
mode:
authorself <george@gabbott.dev>2022-10-19 16:09:29 +0100
committerself <george@gabbott.dev>2022-10-19 16:09:29 +0100
commitd63039fc5482a32f08fe96156ea6d0e8399e0d16 (patch)
tree7d0af74e6518d696a5588c8dd26ddfcb407a9d97 /zsh/.zshrc-mk
parent32bc503eb124dad54a2254fb1bc4c4ea54fc33bb (diff)
Moved atd, cld, and various changes in zshrc-mk
Diffstat (limited to 'zsh/.zshrc-mk')
-rw-r--r--zsh/.zshrc-mk37
1 files changed, 29 insertions, 8 deletions
diff --git a/zsh/.zshrc-mk b/zsh/.zshrc-mk
index ce1e387..c2a9ac0 100644
--- a/zsh/.zshrc-mk
+++ b/zsh/.zshrc-mk
@@ -1,8 +1,8 @@
-mkwr() {
+wr() {
nvim "$HOME/docs/wr/$1"
}
-mksec() { # Make an encrypted (secure entry).
+mnsec() { # Make an encrypted (secure entry).
[ -z "$DEFAULT_GPG" ] && echo "DEFAULT_GPG not set" && return
mkdir -p "/tmp/mksec"
nvim "/tmp/mksec/$1"
@@ -29,22 +29,31 @@ mdsec() { # Modify a secure entry, writing it back after.
}
-mkrec() {
- mkwr "rec/$1"
+mnrec() {
+ wr "rec/$1"
}
-mkkic() {
- mkwr "kic/$1"
+mnkic() {
+ wr "kic/$1"
}
-mkdream() { # Dream Record: D~
+mndream() { # Dream Record: D~
if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi
mkdir -p "$HOME/docs/wr/dream"
nvim "$HOME/docs/wr/dream/D$(date --iso-8601 -d $DT).txt"
}
+rddream() {
+ if [ -z "$1" ] ; then
+ nvim "$HOME/docs/wr/dream"
+ return
+ else
+ nvim "$HOME/docs/wr/dream/D$(date --iso-8601 -d $DT).txt"
+ fi
+}
+
mn() { # Make note
- mkwr "mn/$1"
+ wr "mn/$1"
}
lle() { # Life Log Entry: L~
@@ -70,3 +79,15 @@ yer() { # Year End Recap: Y~
mkdir -p "$HOME/docs/wr/lle/$(date +%Y -d $DT)-12"
nvim "$HOME/docs/wr/lle/$(date +%Y -d $DT)-12/Y$(date +%Y -d $DT).txt"
}
+
+# 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"
+
+abbrev-alias cld="wr cld/calendar"
+abbrev-alias cldcmp="wr cld/calendar-cmp"
+abbrev-alias cldrec="wr cld/calendar-recurring"
+
+