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

Running add-identities on first SSH run #4

Open
eritbh opened this issue Jan 12, 2022 · 0 comments
Open

Running add-identities on first SSH run #4

eritbh opened this issue Jan 12, 2022 · 0 comments
Labels
add identities enhancement New feature or request

Comments

@eritbh
Copy link
Owner

eritbh commented Jan 12, 2022

We can identify whether identities have been pulled by checking for the existence of the ssh_config file. Make a wrapper that will run the add script only if that file doesn't exist yet, then calls ssh passing through arguments. Users would be able to use the wrapper by adding e.g. alias ssh="op-ssh" to their shell config.

This may not actually need a wrapper; an option could be added to the existing script to do nothing if keys have already been pulled, and it could be used as e.g. alias ssh="op-add-identities -z; ssh" assuming a similar alias structure is available across shells.

@eritbh eritbh added enhancement New feature or request add identities labels Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add identities enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant