diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-12 22:16:50 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-12 22:16:50 +0200 |
| commit | f6a7148bb23894470ea5ee0e4a1fde00a9a68c5d (patch) | |
| tree | f646f5d52f8024490cbeca8b2acca1a91e7e0904 /fish | |
| parent | 2849fd0e07a3722d58c8215cb26d67ae3bf431f1 (diff) | |
Update
Diffstat (limited to 'fish')
| -rw-r--r-- | fish/conf.d/supersync.fish | 17 |
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 |
