Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omb-prompt-base: do not attempt to process git vars outside a git tree #443

Merged
merged 1 commit into from
May 23, 2023

Conversation

jjmcdn
Copy link
Contributor

@jjmcdn jjmcdn commented May 23, 2023

I noticed this when checking out the n0qorg, being outside a git repository would have an undecorated detached: (from SCM_THEME_DETACHED_PREFIX) in the prompt. It's easy enough to correct this in the theme but since the problem also may be observed in hawaii50, iterate, pro, standard and zitron as well, and git rev-parse is fast to execute anyway, this seems to be the correct place to insert this quick check.

@akinomyoga akinomyoga force-pushed the jjm/early-exit-git-prompt-vars branch 2 times, most recently from 27a9e7a to a9cd9f1 Compare May 23, 2023 21:31
Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
@akinomyoga akinomyoga force-pushed the jjm/early-exit-git-prompt-vars branch from a9cd9f1 to 3e9c127 Compare May 23, 2023 21:33
@akinomyoga akinomyoga merged commit e91797d into ohmybash:master May 23, 2023
@akinomyoga
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants