Ask for RSA sshkey if available
This commit is contained in:
parent
055244defb
commit
758c9ec5f5
|
@ -51,8 +51,13 @@ if-shell -b 'test -n $TMUX' {
|
|||
|
||||
## Window for authentication tools
|
||||
display-message "Create a new window for Authentication"
|
||||
### Gpg key
|
||||
new-window -nAuthTmux 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; logout'
|
||||
### SSH key ED25519
|
||||
split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; logout'
|
||||
### SSH key RSA (if available)
|
||||
if-shell -b 'test -n ~/.ssh/id_rsa' { split-window -v 'ssh-add -l | grep -qi -- "(RSA)" || ssh-add ~/.ssh/id_rsa ; logout' }
|
||||
### Enable synchronization between all panels
|
||||
set-window-option synchronize-panes on
|
||||
}
|
||||
# }}}
|
||||
|
|
Loading…
Reference in New Issue