Commit dae5662
committed
Shell: Disable history and improve agent detection
Expand is_ai_agent() to detect Claude Code, Codex, and the emerging
AGENT env var convention (Goose, Amp). Disable shell history and
hishtory in agent shells to prevent pollution from auto-generated
commands. Also clean up zsh starship config to always use the full
prompt, with a sentinel to clear bash's ASCII override when launching
zsh from bash.1 parent a345965 commit dae5662
File tree
6 files changed
+59
-41
lines changed- home
- dot_config/zsh/exact_private_zsh.d
- exact_private_dot_bash.d
6 files changed
+59
-41
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
Lines changed: 34 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 180 | | |
194 | 181 | | |
195 | 182 | | |
| |||
201 | 188 | | |
202 | 189 | | |
203 | 190 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
208 | 202 | | |
209 | | - | |
210 | | - | |
| 203 | + | |
| 204 | + | |
211 | 205 | | |
212 | | - | |
213 | | - | |
| 206 | + | |
| 207 | + | |
214 | 208 | | |
215 | | - | |
216 | | - | |
| 209 | + | |
| 210 | + | |
217 | 211 | | |
218 | | - | |
219 | | - | |
| 212 | + | |
| 213 | + | |
220 | 214 | | |
221 | | - | |
222 | | - | |
| 215 | + | |
| 216 | + | |
223 | 217 | | |
224 | | - | |
225 | | - | |
| 218 | + | |
| 219 | + | |
226 | 220 | | |
227 | | - | |
228 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
229 | 224 | | |
230 | 225 | | |
231 | 226 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| |||
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
203 | 214 | | |
204 | 215 | | |
205 | 216 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
0 commit comments