Logout after auth tools

This commit is contained in:
Jeremy Gardais 2022-12-13 08:21:51 +01:00
parent ab504413b8
commit f1f82c7085
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 4 additions and 4 deletions

View File

@ -35,8 +35,8 @@ if-shell '! tmux has-session -t toto' {
# Fourth window named **git** in main repos directory
new-window -d -ngit -c '/home/jegardai/repos'
# Fifth window for authentication tools
new-window -nAuth 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; exec ${SHELL}'
split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; exec ${SHELL}'
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'
set-window-option synchronize-panes on
# Default pane should be toto:5.2

View File

@ -38,8 +38,8 @@ if-shell '! tmux has-session -t jd' {
split-window -d -h -tjd:2.1 -c '/home/jegardai/repos/ipr.debops'
# Third window for authentication tools
new-window -nAuth 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; exec ${SHELL}'
split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; exec ${SHELL}'
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'
set-window-option synchronize-panes on
# Default pane should be jd:3.2