git/list[1] front-page[2] threads[3] people[4] search[5] about
 

bash prompt evaporates in subdirectories

From
Matěj Cepl <mcepl@cepl.eu>
Date
Oct 22, 2024, 15:02 UTC
Message-ID
<D52FCQ2F409N.1S5Q8XRAX5YU7@cepl.eu>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue) cd subdirectory/

What did you expect to happen? (Expected behavior) bash prompt would be still active and showing the status of my checkout (possibly even limited to the current subdirectory, but it is not necessary)

What happened instead? (Actual behavior) Part of the bash prompt related to git (e.g., current branch) evaporates

What's different between what you expected and what actually happened? I would like to have current branch and status even in subdirectories

Anything else you want to add:

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info]
git version:
git version 2.47.0
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
libcurl: 8.10.1
OpenSSL: OpenSSL 3.1.4 24 Oct 2023
zlib: 1.3.1
uname: Linux 6.11.3-1-default #1 SMP PREEMPT_DYNAMIC Fri Oct 11 06:48:36 UTC 2024 (7881e90) x86_64
compiler info: gnuc: 14.2
libc info: glibc: 2.40
$SHELL (typically, interactive shell): /usr/bin/bash
Bash version: GNU bash, version 5.2.37(1)-release (x86_64-suse-linux)
[Enabled Hooks]
Next: Taylor Blau
Message 1 of 10 in “bash prompt evaporates in subdirectories”
  1. Matěj CeplOct 22, 2024
  2. Taylor BlauOct 22, 2024
  3. Matěj CeplOct 24, 2024
  4. avihOct 24, 2024
  5. avihOct 24, 2024
  6. Matěj CeplOct 24, 2024
  7. RESOLVED [Was: Re: bash prompt evaporates in subdirectories]Matěj Cepl, Oct 24, 2024
  8. Taylor BlauOct 24, 2024
  9. avihOct 24, 2024
  10. avihOct 24, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.