random/bin/tmuxd.sh

26 lines
583 B
Bash
Executable File

#!/bin/bash
session="niefelheim"
tmux new-session -d -s $session
window=0
tmux rename-window -t $session:$window 'Work'
#tmux send-keys -t $session:$window 'git fetch --prune --all' C-m
window=1
tmux new-window -t $session:$window -n 'ROOT'
tmux send-keys -t $session:$window 'sudo su -' C-m
window=2
tmux new-window -t $session:$window -n 'Misc'
window=3
tmux new-window -t $session:$window -n 'tail current'
tmux send-keys -t $session:$window 'mtail /var/log/everything/current' C-m
window=4
tmux new-window -t $session:$window -n 'Portage'
tmux attach-session -t $session