Add shell auxiliary function to start default tmux session

This commit is contained in:
Daniel - 2020-08-23 12:23:37 +02:00
parent 880db2d7a3
commit e703f1332a
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 9 additions and 0 deletions

View File

@ -19,3 +19,12 @@ function run-remote-apt-upgrade() {
ssh "$host" -t "tmux new-session -d -A -s apt-updates \; send-keys 'sudo apt clean && sudo apt update && sudo apt upgrade && sudo apt autoremove && tripwire --check --interactive' ENTER \; attach"
}
function tmux-main() {
tmux attach -t main || \
tmux new-session -d -A -s main \; \
send-keys 'journalctl --follow' ENTER \; \
split-window \; \
send-keys 'htop -t' ENTER \; \
attach-session -t main
}