dotfiles/.config/tmux/sessions/dot.session
Marty Oehme 1fafcaadc4 Add dotfile configuration session
Invoked with `tm dot.session`. Contains a git window watching the
dotfiles status, diff, and a git log of recent commits. Contains a
window with vim. Contains a third window to test out the resulting dot
commands. Kept simple and clean.
2019-07-16 21:17:04 +02:00

12 lines
650 B
Text

rename-window dot-git
send-keys "watch -t -n 5 -c '/usr/bin/git --git-dir=/home/marty/.dotfiles/ --work-tree=/home/marty -c color.ui=always diff | tail -n $(($LINES - 2))'" C-m
split-window -h watch -t -n 5 -c '/usr/bin/git --git-dir=/home/marty/.dotfiles/ --work-tree=/home/marty -c color.ui=always status | sed "s/\x1b\[m/\x1b\[00m/"'
split-window -v
send-keys k C-m
select-pane -t 1
split-window -v watch -t -n 5 -c '/usr/bin/git --git-dir=/home/marty/.dotfiles/ --work-tree=/home/marty -c color.ui=always log --graph --date=short --decorate --oneline'
select-pane -t 4
new-window -n code
send-keys "vim" C-m
new-window -n test
select-window -t 1