mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-16 02:40:08 +00:00
docs(ssh-agent): macOS and p10k advices (#11612)
This commit is contained in:
parent
4586808f86
commit
b4f9698733
1 changed files with 27 additions and 0 deletions
|
@ -99,6 +99,33 @@ ssh-add -K -c -a /run/user/1000/ssh-auth <identities>
|
||||||
|
|
||||||
For valid `ssh-add` arguments run `ssh-add --help` or `man ssh-add`.
|
For valid `ssh-add` arguments run `ssh-add --help` or `man ssh-add`.
|
||||||
|
|
||||||
|
### Powerline 10k specific settings
|
||||||
|
|
||||||
|
Powerline10k has an instant prompt setting that doesn't like when this plugin
|
||||||
|
writes to the console. Consider using the following settings if you're using
|
||||||
|
p10k (documented above):
|
||||||
|
|
||||||
|
```
|
||||||
|
zstyle :omz:plugins:ssh-agent quiet yes
|
||||||
|
zstyle :omz:plugins:ssh-agent lazy yes
|
||||||
|
```
|
||||||
|
|
||||||
|
### macOS specific settings
|
||||||
|
|
||||||
|
macOS supports using passphrases stored in the keychain when adding identities
|
||||||
|
to the ssh-agent.
|
||||||
|
|
||||||
|
```
|
||||||
|
ssh-add --apple-use-keychain ~/.ssh/id_rsa ...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
This plugin can be configured to use the keychain when loading using the following:
|
||||||
|
|
||||||
|
```
|
||||||
|
zstyle :omz:plugins:ssh-agent ssh-add-args --apple-load-keychain
|
||||||
|
```
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
Based on code from Joseph M. Reagle: https://www.cygwin.com/ml/cygwin/2001-06/msg00537.html
|
Based on code from Joseph M. Reagle: https://www.cygwin.com/ml/cygwin/2001-06/msg00537.html
|
||||||
|
|
Loading…
Reference in a new issue