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

Share example prompt configurations

Open AddictArts opened this issue 10 years ago • 6 comments

Would you be willing to share some of the prompts you have in the README.md

For example this one https://raw.githubusercontent.com/michaeldfallen/git-radar/master/images/detailed.png

Thank you

AddictArts avatar Aug 28 '15 18:08 AddictArts

Something like? screen shot 2015-08-29 at 21 37 02

Fork dotfiles https://github.com/JosephEarl/dotfiles and install (which is just a fork of https://github.com/michaeldfallen/dotfiles with a sub-module pointing to a private repo removed and the start of the prompt message added).

Set Terminal profile to monokai and font to Hack (it's slightly different, but close -- this should be selected after installing the dot files with the bootstrap script).

Make sure to include .bashrc in your .bash_profile:

if [ -f $HOME/.bashrc ]; then . $HOME/.bashrc; fi

The prompt used is:

\[\033[1;32m\]→\[\033[0m\] \[\033[1;36m\]$(basename $(pwd))/\[\033[0m\]$(git-radar --bash --fetch)

josephearl avatar Aug 29 '15 01:08 josephearl

Yes, unfortunately this seems geared for the Linux terminal and I am on a Mac using the Mac Terminal. Git-Radar is still useful and I managed to get close. The "git:(...)" part does not appear, but the rest is there. Thanks

AddictArts avatar Aug 31 '15 22:08 AddictArts

I'm using OS X & Terminal and the "git:(...)" part appears for me when I'm in a Git repo

josephearl avatar Sep 01 '15 08:09 josephearl

Same here, I'm using OSX, apples built in Terminal (with TotalTerminal wrapping it) and Zsh.

Probably what's happening is your terminal is set up to use a different colour scheme. I use monokai and that has the "bright black" colour set to a dark grey. So I see git:( as a dark grey.

A pull request is currently open to make this configurable, #39, so you'll be able to change the colour soon.

michaeldfallen avatar Sep 01 '15 14:09 michaeldfallen

If you need another example on how to integrate git-radar into a prompt take a look at my slimline zsh theme. The git-radar information is obtained asynchronously which makes the prompt very fast even in large git repositories.

mengelbrecht avatar Sep 01 '15 20:09 mengelbrecht

Thanks to all, I have it working now.

AddictArts avatar Nov 17 '15 01:11 AddictArts