Source AUTHENTICATION file instead of commands

This commit is contained in:
Jeremy Gardais 2023-03-03 08:11:41 +01:00
parent 758c9ec5f5
commit f3f8b5e383
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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