From f1f82c70858d15944b85f2098b90b0ee1b7c3f8a Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 13 Dec 2022 08:21:51 +0100 Subject: [PATCH] Logout after auth tools --- splitLAPTOP | 4 ++-- splitWORKSTATION | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/splitLAPTOP b/splitLAPTOP index d739f4a..953cfd8 100644 --- a/splitLAPTOP +++ b/splitLAPTOP @@ -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 diff --git a/splitWORKSTATION b/splitWORKSTATION index 7618c9a..5c9f099 100644 --- a/splitWORKSTATION +++ b/splitWORKSTATION @@ -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