Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
add identities enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant