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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# rustimal shell integration. Regenerated on every launch; edits will be lost.
# Loaded once through PROMPT_COMMAND so the normal Git Bash login setup still runs.
__RUSTIMAL=1
__rustimal_first=1
# rustimal keeps $RUSTIMAL_STATE/winpath holding the Windows PATH from the
# registry. When an installer changes it, swap the new one into this shell's
# PATH (Git Bash's own folders stay in front), so no restart is needed.
PROMPT_COMMAND=__rustimal_prompt
# `claude` with no arguments asks rustimal to show its session picker,
# then reads the choice back: a session id, "new", or an empty line to cancel.
# Tab on an empty line would make bash look up every command on PATH. With a
# Windows-sized PATH that takes ~10 seconds (the terminal looks frozen) and then
# prints thousands of names. Complete the files here instead, like `ls`.
# Never stop to ask "Display all N possibilities?"; just list them.
# Also sync right before a command line runs, so a PATH change made while the
# prompt was waiting applies to that command. Runs once per command line, and
# only if nothing else (e.g. bash-preexec) already uses the DEBUG trap.
if [; then
fi
# We are being sourced from the first PROMPT_COMMAND run; build the first prompt now.