magicmonty / bash-git-prompt

An informative and fancy bash prompt for Git users
BSD 2-Clause "Simplified" License
6.7k stars 962 forks source link

bash-git-prompt breaks atuin #496

Open peterjanes opened 2 years ago

peterjanes commented 2 years ago

If I source gitprompt.sh before atuin is initialized then both work well. If I swap the order then atuin doesn't work. (It's an easy workaround, but I'm noting it here in case other shell utilities are similarly affected.)

Per https://github.com/ellie/atuin/issues/380#issuecomment-1118541542,

Atuin for bash should be additive to your shell hooks. So you should be able to enable it after bash-git-prompt. I'm guessing they have a bad init that overrides the hooks

I'm using atuin 0.9.1 and commit 148d502b666a0d62ecc83680817596b097a70f2a of bash-git-prompt.

guenhter commented 1 year ago

@peterjanes at the end of the day, what bash-git-prompt does, is modifying PROMPT_COMMAND and PS1 Could you send the content of both variables for the following scenarios:

thx