git-radar icon indicating copy to clipboard operation
git-radar copied to clipboard

command overlaps prompt with stash

Open travisdowns opened this issue 6 years ago • 1 comments

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.

travisdowns avatar Sep 10 '18 03:09 travisdowns

#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.

hallzy avatar Mar 26 '21 06:03 hallzy