diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-17 22:35:33 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-17 22:35:33 +0200 |
| commit | 17178b89ae954eaf735b73cd9d1490acdd5d38f1 (patch) | |
| tree | 12a7ebc2d1f4f39a916f1e265bc2f7b08b8eb09a | |
| parent | 8147a077f9fba80752be7a8b764430fba89606ce (diff) | |
| parent | d5d7528541a77ebcfa4f78cb0bf8c6160bb2871d (diff) | |
Merge branch 'master' of codeberg.org:snonux/dotfiles
| -rw-r--r-- | fish/conf.d/supersync.fish | 24 |
1 files changed, 13 insertions, 11 deletions
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 |
