evansendra / mingit

An extremely minified alias for git commands.
75 stars 8 forks source link

Not having much luck installing on Mac so far... #9

Closed BeggarsMattM closed 7 years ago

BeggarsMattM commented 7 years ago

npm install failed with "Error: Command failed: /usr/local/lib/node_modules/mingit/scripts/install-apple-bash-profile.sh"

yarn worked better but running the script resulted in:

line 2790: syntax error near unexpected token `('

line 2790: `g()'

evansendra commented 7 years ago

I'll be sure to look into what could cause this. Can you tell me what type of mac you have (hardware / OS version)? Also, if you just want to use this alias right now, feel free to follow the manual install instructions. Thanks for reporting!

BeggarsMattM commented 7 years ago

Thank you, will do! I just upgraded (2015 iMac) to Sierra yesterday so I may have brought this on myself.

evansendra commented 7 years ago

No problem...go ahead and give it another try...I just did a simple thing and changed the bash function from:

g()
{ 
...

to

g ()
{
...

which may solve it. Since I can't reproduce this on my machine it may be hard to debug.

evansendra commented 7 years ago

@BeggarsMattM , if you have some extra time, feel free to uninstall (via npm uninstall -g mingit or removing the ~/.mingit.sh file as well as the variable added to _~/.bashprofile) and re-install this with npm. I'll close this issue for now, but please do re-open if you do the above and discover more errors :)