Comments (14)
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.
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.
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.
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.
if you do a man nohup
what do you get?
from git-radar.
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.
I suppose it should be this:
nohup ~/git-radar/fetch.sh >/dev/null 2>&1
from git-radar.
I can make a diff and send you the pull request if it makes sense?
from git-radar.
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.
Yeah submit a PR if you think you've fixed it. Happy to merge.
from git-radar.
I will do a test and let you know.
from git-radar.
I think there was a problem from my side. Tried again and it worked without any changes.
from git-radar.
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.
This happens on my Ubuntu and I cannot reproduce it on Mac.
from git-radar.
Related Issues (20)
- is_cwd_a_dot_git_directory:1: = not found HOT 7
- Promote new Maintainers HOT 4
- Calling Formula.sha1 is deprecated! HOT 4
- Calling Formula.sha1 is deprecated! HOT 2
- Not upstream indicator taking up too much space HOT 12
- problem with fish HOT 2
- Weird issue with Makefile HOT 2
- Running git-radar --bash is slow HOT 3
- Fish - LS is completely bugged HOT 2
- command overlaps prompt with stash HOT 1
- odd sed error on branches named with multiple / characters HOT 7
- have to pull twice to update a work branch HOT 22
- Made a new lightweight stable version of git-radar HOT 2
- weird characters show up with git-radar on mac os x HOT 8
- fatal error messages with git-radar on local untracked branches HOT 11
- Unhandled git error when a tracked upstream branch is removed HOT 2
- 0.6 upgrade issue HOT 3
- feature req: color prompt red when folder not writable HOT 1
- Reduce the number of binaries needed to be added to the path HOT 3
- cd .git/ produces fatal: /usr/lib/git-core/git-stash cannot be used without a working tree HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-radar.