New window for APT upgrade

This commit is contained in:
gardouille 2022-12-13 08:44:49 +01:00
parent f1f82c7085
commit 4e46ac1138
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 6 additions and 3 deletions

View File

@ -37,13 +37,16 @@ if-shell '! tmux has-session -t jd' {
# with 2 panes in IPR debops project
split-window -d -h -tjd:2.1 -c '/home/jegardai/repos/ipr.debops'
# Third window for authentication tools
# Third window for APT upgrade
new-window 'sudo aptitude update ; sudo aptitude full-upgrade ; exec ${SHELL}'
# 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
# Default pane should be jd:3.2
#select-pane -tjd:3.2
# Default pane should be jd:4.2
#select-pane -tjd:4.2
}
# If a default session still exists {{{
if-shell -b 'tmux has-session -t 0' {