diff --git a/tmux/.config/tmux/sessions/dot.session b/tmux/.config/tmux/sessions/dot.session index 179377b..210d813 100644 --- a/tmux/.config/tmux/sessions/dot.session +++ b/tmux/.config/tmux/sessions/dot.session @@ -4,7 +4,7 @@ split-window -h watch -t -n 1 -c 'cd ~/.dotfiles; git -c color.ui=always status split-window -v send-keys "cd ~/.dotfiles; clear" C-m L C-m select-pane -t 1 -split-window -v watch -t -n 1 -c 'cd ~/.dotfiles; git -c color.ui=always log --graph --date=short --decorate --oneline --all --remotes' +split-window -v watch -t -n 1 -c 'cd ~/.dotfiles; [ $(git diff --staged | wc -l) -eq 0 ] && git -c color.ui=always log --graph --date=short --decorate --oneline --all --remotes || git -c color.ui=always diff --staged | tail -n $(($LINES - 2))' select-pane -t 4 new-window -n code send-keys "cd ~/.dotfiles; v ." C-m I