From b0b1d0b64afa8fa5fc471040392af6d6c5c3103d Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 4 Apr 2021 21:03:05 +0200 Subject: [PATCH] tmux: Fix dotfiles session Hopefully fix dotfiles entr session watching a little, should now not quit git status overview when switching between branches, since it runs entr in an endless loop. Feels like little bit of a hack, but is the advised way by the creator on his webpage. --- tmux/.config/tmux/sessions/dot.session | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmux/.config/tmux/sessions/dot.session b/tmux/.config/tmux/sessions/dot.session index b268f5b..f2fc987 100644 --- a/tmux/.config/tmux/sessions/dot.session +++ b/tmux/.config/tmux/sessions/dot.session @@ -1,10 +1,10 @@ rename-window dot-git -send-keys "cd ~/.dotfiles; fd -t f --hidden | entr -c git -c color.ui=always diff" C-m -split-window -h "cd ~/.dotfiles; fd -t f --hidden | entr -c git -c color.ui=always status" +send-keys "cd ~/.dotfiles; while true; do fd -t f --hidden | entr -c git -c color.ui=always diff; done" C-m +split-window -h "cd ~/.dotfiles; while true; do fd -t f --hidden --exclude .git/objects | entr -c git -c color.ui=always status; done" 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 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))' +split-window -v "cd ~/.dotfiles; while true; do fd -t f --hidden --exclude .git/objects | entr git -c color.ui=always log --graph --date=short --decorate --oneline --all --remotes; done" select-pane -t 4 new-window -n code send-keys "cd ~/.dotfiles; v ." C-m zo