From d5d7528541a77ebcfa4f78cb0bf8c6160bb2871d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 17 Feb 2026 10:36:00 +0200 Subject: Update --- fish/conf.d/supersync.fish | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'fish') diff --git a/fish/conf.d/supersync.fish b/fish/conf.d/supersync.fish index f286524..8f00e75 100644 --- a/fish/conf.d/supersync.fish +++ b/fish/conf.d/supersync.fish @@ -90,19 +90,21 @@ function supersync::gitsyncer end function supersync::prompts - if not test (uname) = Linux - return - end - if not test -d ~/git/dotfiles/prompts - return - end - # Since files might have been added and/or modified withoug being # committed to git yet. - cd ~/git/dotfiles/prompts - find . -type f -name \*.md | xargs git add - find . -type f -name \*.md | xargs git commit -m 'update prompt' - cd - + if test -d ~/git/dotfiles/prompts + cd ~/git/dotfiles/prompts + find . -type f -name \*.md | xargs git add + find . -type f -name \*.md | xargs git commit -m 'update prompts' + git push + cd - + else if test -d ~/git/helpers/prompts + cd ~/git/helpers/prompts + find . -type f -name \*.md | xargs git add + find . -type f -name \*.md | xargs git commit -m 'update prompts' + git push + cd - + end end function supersync -- cgit v1.2.3