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:
parent
feb13b3734
commit
b0b1d0b64a
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
rename-window dot-git
|
rename-window dot-git
|
||||||
send-keys "cd ~/.dotfiles; fd -t f --hidden | entr -c git -c color.ui=always diff" C-m
|
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; fd -t f --hidden | entr -c git -c color.ui=always status"
|
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
|
split-window -v
|
||||||
send-keys "cd ~/.dotfiles; clear" C-m L C-m
|
send-keys "cd ~/.dotfiles; clear" C-m L C-m
|
||||||
select-pane -t 1
|
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
|
select-pane -t 4
|
||||||
new-window -n code
|
new-window -n code
|
||||||
send-keys "cd ~/.dotfiles; v ." C-m zo
|
send-keys "cd ~/.dotfiles; v ." C-m zo
|
||||||
|
|
Loading…
Reference in a new issue