summaryrefslogtreecommitdiff
path: root/fish
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-12 22:16:50 +0200
committerPaul Buetow <paul@buetow.org>2026-02-12 22:16:50 +0200
commitf6a7148bb23894470ea5ee0e4a1fde00a9a68c5d (patch)
treef646f5d52f8024490cbeca8b2acca1a91e7e0904 /fish
parent2849fd0e07a3722d58c8215cb26d67ae3bf431f1 (diff)
Update
Diffstat (limited to 'fish')
-rw-r--r--fish/conf.d/supersync.fish17
1 files changed, 17 insertions, 0 deletions
diff --git a/fish/conf.d/supersync.fish b/fish/conf.d/supersync.fish
index 320afcd..70a3cc3 100644
--- a/fish/conf.d/supersync.fish
+++ b/fish/conf.d/supersync.fish
@@ -88,6 +88,22 @@ function supersync::gitsyncer
end
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 -
+end
+
function supersync
if test -f ~/.supersync_disable
echo Supersync is disabled
@@ -98,6 +114,7 @@ function supersync
supersync::taskwarrior
supersync::worktime no_sync_quotes
supersync::uprecords
+ supersync::prompts
if test -f ~/.gos_enable
gos