From 1fafcaadc42ec3378cc5f4bcc5292b7438ef5454 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 16 Jul 2019 21:14:39 +0200 Subject: [PATCH] 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. --- .config/tmux/sessions/dot.session | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/tmux/sessions/dot.session diff --git a/.config/tmux/sessions/dot.session b/.config/tmux/sessions/dot.session new file mode 100644 index 0000000..67c52e5 --- /dev/null +++ b/.config/tmux/sessions/dot.session @@ -0,0 +1,12 @@ +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