summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-17 22:35:33 +0200
committerPaul Buetow <paul@buetow.org>2026-02-17 22:35:33 +0200
commit17178b89ae954eaf735b73cd9d1490acdd5d38f1 (patch)
tree12a7ebc2d1f4f39a916f1e265bc2f7b08b8eb09a
parent8147a077f9fba80752be7a8b764430fba89606ce (diff)
parentd5d7528541a77ebcfa4f78cb0bf8c6160bb2871d (diff)
Merge branch 'master' of codeberg.org:snonux/dotfiles
-rw-r--r--fish/conf.d/supersync.fish24
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