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

Share example prompt configurations #34

Open
AddictArts opened this issue Aug 28, 2015 · 6 comments
Open

Share example prompt configurations #34

AddictArts opened this issue Aug 28, 2015 · 6 comments

Comments

@AddictArts
Copy link

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

@josephearl
Copy link

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)

@AddictArts
Copy link
Author

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

@josephearl
Copy link

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

@michaeldfallen
Copy link
Owner

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.

@mengelbrecht
Copy link

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.

@AddictArts
Copy link
Author

Thanks to all, I have it working now.

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

4 participants