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.
This commit is contained in:
Marty Oehme 2021-04-04 21:03:05 +02:00
parent feb13b3734
commit b0b1d0b64a
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -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