Updated: 2023-07-16 19:32:58 + 4

main
shwetha729 2023-07-16 19:32:59 -04:00
parent 5d44c9c1d7
commit b47897a4b6
2 changed files with 8 additions and 5 deletions

View File

@ -126,7 +126,8 @@
}
],
"direction": "horizontal",
"width": 285.5
"width": 200,
"collapsed": true
},
"right": {
"id": "e641d8c09a3445f6",

View File

@ -249,7 +249,8 @@ then
fi
git add .;
git commit -q -m "$msg"; # Updated: 2019-08-28 10:22:06
git commit -q -m "$msg";
# basically this outputs Updated: 2019-08-28 10:22:06
git push -q
```
@ -334,20 +335,21 @@ Then create the .plist which calls the previous `zk_sync` script that we made be
<string>/Users/shwethajayaraj/bin/zk_sync.sh</string>
</array>
<key>StartInterval</key>
<integer>15</integer>
<integer>180</integer>
</dict>
</plist>
```
note: The 180 integer interval is made in *seconds*, thus this script executes the automation to run every 3 minutes.
Once you have saved it as a .plist in the right directory, make sure that you test that it works. run:
5. Once you have saved it as a .plist in the right directory, make sure that you test that it works. run:
```
launchctl load -w ~/Library/LaunchAgents/us.shwetha.obsidian.plist
```
to load this `launchd` action.
Now check your gitea repository.
6. Now check your gitea repository.
![[Pasted image 20230715021300.png]]
Ta-da!! You did it!!! All your work will now be synced to git every few minutes.