Giter Site home page Giter Site logo

Comments (14)

michaeldfallen avatar michaeldfallen commented on July 20, 2024

Thanks for the feedback, glad you like it.

Have you got the latest pulled? There was a problem with zero width characters (flagged up in #4) which was fixed by @eyeofhell in #7. Problem was this only works if you don't set your PS1 using " like you have here (and like I was).

#11 I think has fixed this by switching from \[ to \x01 (a conversion that PS1 handles for you, for some reason).

Try pulling the latest and see if that helps.

from git-radar.

michaeldfallen avatar michaeldfallen commented on July 20, 2024

Sorry, the other problem you mention, where you use " and then it renders properly but doesn't update. That's because the $() renders when PS1 is exported, rather than every time it's rendered.

The fix is use either:

export PS1="\W\$(~/git-radar/git-radar --bash) "

(^ the '' escaping the $ is important)

or

export PS1='\W$(~/git-radar/git-radar --bash) '

With the latest pull both of those should work for you. I'll need to update the docs to reflect that missing \.

from git-radar.

btabibian avatar btabibian commented on July 20, 2024

It worked! this is really great.

Now when I add --fetch command I get following:

nohup: redirecting stderr to stdout

Is there a solution for this as well?

from git-radar.

michaeldfallen avatar michaeldfallen commented on July 20, 2024

Hmm, that's odd. I haven't seen that before. Probably I'm not doing the nohup correctly at https://github.com/michaeldfallen/git-radar/blob/master/git-radar#L80.

from git-radar.

michaeldfallen avatar michaeldfallen commented on July 20, 2024

if you do a man nohup what do you get?

from git-radar.

btabibian avatar btabibian commented on July 20, 2024

I get the follow:

NOHUP(1) User Commands NOHUP(1)

NAME
nohup - run a command immune to hangups, with output to a non-tty

SYNOPSIS
nohup COMMAND [ARG]...
nohup OPTION

DESCRIPTION
Run ...

from git-radar.

btabibian avatar btabibian commented on July 20, 2024

I suppose it should be this:

nohup ~/git-radar/fetch.sh >/dev/null 2>&1

from git-radar.

btabibian avatar btabibian commented on July 20, 2024

I can make a diff and send you the pull request if it makes sense?

from git-radar.

michaeldfallen avatar michaeldfallen commented on July 20, 2024

Yeah I'd try a variety of:

nohup ~/git-radar/fetch.sh >/dev/null 2>&1 &
(nohup ~/git-radar/fetch.sh >/dev/null) &
(nohup ~/git-radar/fetch.sh >/dev/null &)

from git-radar.

michaeldfallen avatar michaeldfallen commented on July 20, 2024

Yeah submit a PR if you think you've fixed it. Happy to merge.

from git-radar.

btabibian avatar btabibian commented on July 20, 2024

I will do a test and let you know.

from git-radar.

btabibian avatar btabibian commented on July 20, 2024

I think there was a problem from my side. Tried again and it worked without any changes.

from git-radar.

btabibian avatar btabibian commented on July 20, 2024

Not so fast, apparently what is happening is that git crashes in one of its fetches so I get the following:

fatal: Unable to create 'PATH/.git/index.lock' 

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
Cannot save the current index state
nohup: redirecting stderr to stdout

and after that every call gives me:

nohup: redirecting stderr to stdout

from git-radar.

btabibian avatar btabibian commented on July 20, 2024

This happens on my Ubuntu and I cannot reproduce it on Mac.

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.