-
Notifications
You must be signed in to change notification settings - Fork 1
/
jrnl_aliases
51 lines (48 loc) · 1.23 KB
/
jrnl_aliases
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
46
47
48
49
50
51
alias j1='jrnl -1'
alias j2='jrnl -2'
alias j3='jrnl -3'
alias j4='jrnl -4'
alias j5='jrnl -5'
alias j6='jrnl -6'
alias j7='jrnl -7'
alias j8='jrnl -8'
alias j9='jrnl -9'
alias j='jrnl'
alias jY='jrnl year'
alias jYs='JRNL_DONT_SHOW_DETAIL=1 jrnl year'
alias ja='jrnl all'
alias jad='jrnl add'
alias jadd='jrnl add'
alias jc='jrnl copy'
alias jd='jrnl diff'
alias je='jrnl edit'
alias jf='jrnl file'
alias jh1='jrnl h 1'
alias jh2='jrnl h 2'
alias jh3='jrnl h 3'
alias jh='jrnl -10'
alias ji1='jrnl i 1'
alias ji2='jrnl i 2'
alias ji3='jrnl i 3'
alias jjy="cd .jrnl/$(date +%Y -d '-1 day')/$(date +%Y-%m -d '-1 day')/$(date +%F -d '-1 day')"
alias jj='cd .jrnl/$(date +%Y)/$(date +%Y-%m)/$(date +%F)'
alias jl='jrnl ls'
alias jls='JRNL_DONT_SHOW_DETAIL=1 jrnl ls'
alias jm='jrnl month'
alias jms='JRNL_DONT_SHOW_DETAIL=1 jrnl month'
alias jn='jrnl new'
alias jr='jrnl rm'
alias js='jrnl-stats'
alias jt='jrnl time'
alias jv='jrnl view'
alias jw='jrnl week'
alias jx='jrnltimestampfix; jrnltimefix'
alias jy='jrnl yesterday'
alias td='timediff'
alias jwt='JRNL_DONT_SHOW_DETAIL=1 jrnl week'
alias jmt='JRNL_DONT_SHOW_DETAIL=1 jrnl month'
alias jyt='JRNL_DONT_SHOW_DETAIL=1 jrnl year'
function jclip()
{
[[ -z "$1" ]] || jrnl view $1 | xclip -sel clip
}