Updated: 2023-07-16 19:32:58 + 4
parent
5d44c9c1d7
commit
b47897a4b6
|
@ -126,7 +126,8 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "horizontal",
|
"direction": "horizontal",
|
||||||
"width": 285.5
|
"width": 200,
|
||||||
|
"collapsed": true
|
||||||
},
|
},
|
||||||
"right": {
|
"right": {
|
||||||
"id": "e641d8c09a3445f6",
|
"id": "e641d8c09a3445f6",
|
||||||
|
|
|
@ -249,7 +249,8 @@ then
|
||||||
|
|
||||||
fi
|
fi
|
||||||
git add .;
|
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
|
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>
|
<string>/Users/shwethajayaraj/bin/zk_sync.sh</string>
|
||||||
</array>
|
</array>
|
||||||
<key>StartInterval</key>
|
<key>StartInterval</key>
|
||||||
<integer>15</integer>
|
<integer>180</integer>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</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
|
launchctl load -w ~/Library/LaunchAgents/us.shwetha.obsidian.plist
|
||||||
|
|
||||||
```
|
```
|
||||||
to load this `launchd` action.
|
to load this `launchd` action.
|
||||||
|
|
||||||
Now check your gitea repository.
|
6. Now check your gitea repository.
|
||||||
![[Pasted image 20230715021300.png]]
|
![[Pasted image 20230715021300.png]]
|
||||||
Ta-da!! You did it!!! All your work will now be synced to git every few minutes.
|
Ta-da!! You did it!!! All your work will now be synced to git every few minutes.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue