Commit 51ba5a1
committed
fix: compose bash bootstrap PROMPT_COMMAND instead of clobbering it
Replace the bootstrap's unconditional unset PROMPT_COMMAND with a
self-strip keyed on a trailing marker: remove only Programa's own
bootstrap text and keep whatever the user's startup files appended
before the first prompt (e.g. starship_precmd from
eval "$(starship init bash)"). programa-bash-integration.bash's
existing PROMPT_COMMAND merge then prepends _cmux_prompt_command,
yielding _cmux_prompt_command;starship_precmd so starship_precmd runs
on every prompt instead of being discarded after the first one.
Also add a plain-bash no-regression case alongside the fix.1 parent 64c502f commit 51ba5a1
2 files changed
Lines changed: 50 additions & 1 deletion
File tree
- Resources/shell-integration
- programaTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
9 | 22 | | |
10 | 23 | | |
11 | 24 | | |
12 | | - | |
| 25 | + | |
| 26 | + | |
13 | 27 | | |
14 | 28 | | |
15 | 29 | | |
| |||
20 | 34 | | |
21 | 35 | | |
22 | 36 | | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3374 | 3374 | | |
3375 | 3375 | | |
3376 | 3376 | | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
3377 | 3381 | | |
3378 | 3382 | | |
3379 | 3383 | | |
| |||
3395 | 3399 | | |
3396 | 3400 | | |
3397 | 3401 | | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
3398 | 3432 | | |
3399 | 3433 | | |
3400 | 3434 | | |
| |||
0 commit comments