blob: a93d7a0913074bb63f52b44706eef5d5ed852c2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
mkwr() {
nvim "$HOME/docs/wr/$1"
}
mkrec() {
mkwr "rec/$1"
}
mkkic() {
mkwr "kic/$1"
}
mkdream() { # 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"
}
mn() { # Make note
mkwr "mn/$1"
}
lle() { # Life Log Entry: L~
if [ -z $1 ] ; then DT="today" else DT="$1" fi
mkdir -p "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)"
nvim "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)/L$(date --iso-8601 -d $DT).txt"
}
holc () { # Holiday Entry: H~
if [ -z $1 ] ; then DT="today" else DT="$1" fi
mkdir -p "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)"
nvim "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)/H$(date --iso-8601 -d $DT).txt"
}
mer() { # Month End Recap: M~
if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi
mkdir -p "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)"
nvim "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)/M$(date +%Y-%m -d $DT).txt"
}
yer() { # Year End Recap: Y~
if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi
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"
}
|