Ask for RSA sshkey if available

This commit is contained in:
Jeremy Gardais 2023-03-03 08:11:02 +01:00
parent 055244defb
commit 758c9ec5f5
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 0 deletions

View File

@ -51,8 +51,13 @@ if-shell -b 'test -n $TMUX' {
## Window for authentication tools ## Window for authentication tools
display-message "Create a new window for Authentication" 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' 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' 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 set-window-option synchronize-panes on
} }
# }}} # }}}