From b8fae73940710b580b6cfb024258b2ea39ae129b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 10 Mar 2022 23:04:11 +0100 Subject: [PATCH] tmux: Add gitea issue tracking to dotfile session When no changes are detected, neither uncommitted nor changed, one of the git-window panes will instead of a diff display a list of issues from gitea. --- tmux/.config/tmux/sessions/dot.session | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux/.config/tmux/sessions/dot.session b/tmux/.config/tmux/sessions/dot.session index c35e349..abb88c6 100644 --- a/tmux/.config/tmux/sessions/dot.session +++ b/tmux/.config/tmux/sessions/dot.session @@ -1,5 +1,5 @@ rename-window dot-git -send-keys "cd ~/.dotfiles; while true; do fd -t f --hidden | entr -cd git -c color.ui=always diff; done" C-m +send-keys "cd ~/.dotfiles; while true; do [[ -z $(git status -s) ]] && { fd -t f --hidden | entr -cd tea issue ;} || { fd -t f --hidden | entr -cd git -c color.ui=always diff ;} ; done" split-window -h "cd ~/.dotfiles; while true; do fd -t f --hidden --exclude .git/objects | entr -cd git -c color.ui=always status; done" split-window -v send-keys "cd ~/.dotfiles; clear" C-m L C-m