AUTH: Use long option

This commit is contained in:
gardouille 2024-07-01 10:44:35 +02:00
parent 5faa6f1c8a
commit 7e7d6dad1b
Signed by: gardouille
GPG Key ID: E759BAA22501AF32

View File

@ -21,7 +21,7 @@
## Window for authentication tools
#display-message "Create a new window for Authentication"
#new-window -nAuth 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; logout'
#split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; logout'
#split-window -h 'ssh-add -l | grep --quiet --ignore-case -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; logout'
#set-window-option synchronize-panes on
#}
# }}}
@ -54,9 +54,9 @@ if-shell -b 'test -n $TMUX' {
### Gpg key
new-window -nAuthTmux 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; logout'
### SSH key ED25519
split-window -h -l 0 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; logout'
split-window -h -l 0 'ssh-add -l | grep --quiet --ignore-case -- "(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' }
if-shell -b 'test -n ~/.ssh/id_rsa' { split-window -v 'ssh-add -l | grep --quiet --ignore-case -- "(RSA)" || ssh-add ~/.ssh/id_rsa ; logout' }
### Enable synchronization between all panels
set-window-option synchronize-panes on
}