From f3f8b5e383a712537a789d963dee4350962044e4 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 3 Mar 2023 08:11:41 +0100 Subject: [PATCH] Source AUTHENTICATION file instead of commands --- splitLAPTOP | 4 +--- splitWORKSTATION | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/splitLAPTOP b/splitLAPTOP index 39a014a..e8ccfd0 100644 --- a/splitLAPTOP +++ b/splitLAPTOP @@ -39,9 +39,7 @@ if-shell -b 'test -n $TMUX' { # 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 ; logout' - split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; logout' - set-window-option synchronize-panes on + source-file $HOME/.tmux/splitAUTHENTICATION # Default pane should be toto:5.2 #select-pane -ttoto:5.2 diff --git a/splitWORKSTATION b/splitWORKSTATION index 41bce13..e6d111e 100644 --- a/splitWORKSTATION +++ b/splitWORKSTATION @@ -47,9 +47,7 @@ if-shell -b 'test -n $TMUX' { new-window -nAPT 'sudo apt update ; test $(apt list --upgradable 2>/dev/null | wc --lines) -gt 1 && { sudo aptitude full-upgrade ; sudo aptitude clean } ; logout' # Fourth window for authentication tools - 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 + source-file $HOME/.tmux/splitAUTHENTICATION # Default pane should be jd:4.2 #select-pane -tjd:4.2