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

/etc/bash_completion.d may not exist on macos #47

Closed
michaelshumshum opened this issue Oct 12, 2020 · 8 comments
Closed

/etc/bash_completion.d may not exist on macos #47

michaelshumshum opened this issue Oct 12, 2020 · 8 comments
Labels

Comments

@michaelshumshum
Copy link

hey there sir.
this is a great project you got going.
anyway, I'm tryna get this to work on mac and need some help after the building it.

running mono build/steamguard gives me error: No accounts read.

running the one after that is has the same outcome.

running make -f makefile.macos install gives me error
cp: /etc/bash_completion.d/steamguard: No such file or directory make: *** [install] Error 1

in the installation section, i don't even know what to do. i don't think I'm supposed to do the debian package part and the sudo make install gives me the same error as before.

I'm not that experienced with this kinda stuff so any help would be appreciated.

@dyc3 dyc3 added the bug label Oct 12, 2020
@dyc3
Copy link
Owner

dyc3 commented Oct 12, 2020

I don't exactly have a mac to test with, and I'm not super familiar with the platform. The documentation and makefile was provided by @spkane.

That being said, mono build/steamguard should give error: No accounts read if you haven't set up any accounts yet. By default, it looks for a manifest file with all the accounts at the path ~/maFiles/manifest.json. If you've used SDA, you should just be able to use the same maFiles from that. If not, you can set up a new account with mono bin/steamguard setup.

Does /etc/bash_completion.d exist on mac?

@michaelshumshum
Copy link
Author

/etc/bash_completion.d doesn't exist at all. there is a file named bash_completion.

@dyc3
Copy link
Owner

dyc3 commented Oct 12, 2020

As a workaround, you could create it. I don't know if that will actually make the bash completion work, but it's not required for the actual program to work.

@michaelshumshum
Copy link
Author

ok thanks for the help.
though, one thing I'm encountering while doing the steamguard setup is adding the phone number returns GeneralFailure. i get an email to confirm adding this phone number. should i just added my phone number to the account manually then?

@dyc3
Copy link
Owner

dyc3 commented Oct 12, 2020

That's probably #41

@dyc3 dyc3 changed the title unclear on what to do with macos. /etc/bash_completion.d may not exist on macos Oct 12, 2020
@michaelshumshum
Copy link
Author

the bash_completion.d has been pushed and it seems to work fine on my side.

@melvyn2
Copy link

melvyn2 commented Oct 12, 2020

HI,
Generally, software built locally should be installed to the /usr/local prefix (on all unix systems). Therefore, bash completion scripts should be installed to /usr/local/etc/bash_completion.d. This path exists on my system, but do note that I had installed it with homebrew.

@dyc3
Copy link
Owner

dyc3 commented Sep 1, 2021

Closing because it's no longer relevant.

@dyc3 dyc3 closed this as completed Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants