diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-17 10:36:00 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-17 10:36:00 +0200 |
| commit | d5d7528541a77ebcfa4f78cb0bf8c6160bb2871d (patch) | |
| tree | da5f44a38165d175674b3e6927be73c700879d15 /fish | |
| parent | 4ead6fc6c9671506cdc77fe4f36aeaaee823ba16 (diff) | |
Update
Diffstat (limited to 'fish')
| -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 |
