Giter Site home page Giter Site logo

Comments (6)

josephearl avatar josephearl commented on July 20, 2024

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)

from git-radar.

AddictArts avatar AddictArts commented on July 20, 2024

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

from git-radar.

josephearl avatar josephearl commented on July 20, 2024

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

from git-radar.

michaeldfallen avatar michaeldfallen commented on July 20, 2024

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.

from git-radar.

mengelbrecht avatar mengelbrecht commented on July 20, 2024

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.

from git-radar.

AddictArts avatar AddictArts commented on July 20, 2024

Thanks to all, I have it working now.

from git-radar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.