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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# kaeru (https://github.com/gloomydumber/kaeru) keeps track of this tab, so
# that it can come back after the terminal closes. Your ~/.zshrc loads this
# with: eval "$(kaeru init zsh)"
# Everything runs in a function, so that its variables stay local and a
# problem never stops the rest of ~/.zshrc.
# Writes the folder to the tab's .cwd file when it changes, and touches the
# file at every prompt, without starting a process. The file's time says when
# the prompt last showed, so that kaeru knows an agent that ran in this tab
# ended.