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

How to use a custom PS1 only for what's before the git part ?

Open AlbyTree opened this issue 4 years ago • 3 comments

I have a custom PS1 which results in something like this

username:[/random/path]   
$ 

with 'username' and the path being colored. Can I use these values and then let fancy-git handle the git part of the PS1 ? That is, it should look like this

username:[/random/path] (master | *)  
$ 

AlbyTree avatar Jun 08 '21 15:06 AlbyTree

Hi, @AlbyTree.

Unfortunatelly FancyGit doesn't have this feature, but it could be a feature to be implemented on next versions.

Currently it overrides all PS1 content with one of its predefined styles.

diogocavilha avatar Jun 08 '21 20:06 diogocavilha

That's unfortunate...I hope to see this feature in the future (thanks anyway)!

AlbyTree avatar Jun 09 '21 12:06 AlbyTree

Hello, @AlbyTree. Hope you're doing good!

I'm making some improvements on FancyGit engine so that I'll be able to implement the feature you mentioned. ;)

diogocavilha avatar Aug 17 '21 11:08 diogocavilha