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

command overlaps prompt with stash #118

Open
travisdowns opened this issue Sep 10, 2018 · 1 comment
Open

command overlaps prompt with stash #118

travisdowns opened this issue Sep 10, 2018 · 1 comment

Comments

@travisdowns
Copy link

travisdowns commented Sep 10, 2018

If there is a stash, the stash symbol for the git-radar display overlaps the first character of my command. Here's an example where I've typed OOO into the command line, you can see how it overlaps the first O.

image

My PS1 line in .bashrc is:

PS1="$PS1\$(git-radar --bash --fetch)"

If I add a trailing space to PS1 like:

PS1="$PS1\$(git-radar --bash --fetch) "

but then in any non-git repos there are two spaces after the the $ in my prompt which I find annoying.

@hallzy
Copy link
Contributor

hallzy commented Mar 26, 2021

#110 Might not be that useful to you several years later, but I made a PR 3 or so years ago that lets you add a configurable prefix and suffix string for git-radar, so you can add a space to the end of git radar and it will only render when in a repo.

There hasn't really been any activity on this repo though so it hasn't been merged.

I started my own version of git-radar here written in golang (I wanted an excuse to learn go), if you are interested as well.

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

No branches or pull requests

2 participants