Updated: 2023-07-15 00:00:02 + 5
parent
3f7cea00a8
commit
df6018332d
|
@ -13,7 +13,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Coding Tips (Classical)/Terminal Tips/Shells/Bash.md",
|
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Coding Tips (Classical)/Terminal Tips/Shells/Bash.md",
|
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outgoing-link",
|
"type": "outgoing-link",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Coding Tips (Classical)/Terminal Tips/Shells/Bash.md",
|
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||||
"linksCollapsed": false,
|
"linksCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
}
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Coding Tips (Classical)/Terminal Tips/Shells/Bash.md"
|
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,9 +183,9 @@
|
||||||
"active": "74d85386e2039ea7",
|
"active": "74d85386e2039ea7",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"Coding Tips (Classical)/Terminal Tips/Shells/Computers (operating system)/Apple Macbook/plist.md",
|
"Coding Tips (Classical)/Terminal Tips/Shells/Computers (operating system)/Apple Macbook/plist.md",
|
||||||
"Coding Tips (Classical)/Terminal Tips/Shells/Bash.md",
|
|
||||||
"Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
|
||||||
"Coding Tips (Classical)/Terminal Tips/Shells/Computers (operating system)/Apple Macbook/Launchd.md",
|
"Coding Tips (Classical)/Terminal Tips/Shells/Computers (operating system)/Apple Macbook/Launchd.md",
|
||||||
|
"Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||||
|
"Coding Tips (Classical)/Terminal Tips/Shells/Bash.md",
|
||||||
"Coding Tips (Classical)/Project Vault/Obsidian/imgFiles/Pasted image 20230714193655.png",
|
"Coding Tips (Classical)/Project Vault/Obsidian/imgFiles/Pasted image 20230714193655.png",
|
||||||
"Coding Tips (Classical)/Project Vault/Obsidian/Tips on Obsidian itself.md",
|
"Coding Tips (Classical)/Project Vault/Obsidian/Tips on Obsidian itself.md",
|
||||||
"Coding Tips (Classical)/Project Vault/Obsidian/imgFiles/Pasted image 20230714171308.png",
|
"Coding Tips (Classical)/Project Vault/Obsidian/imgFiles/Pasted image 20230714171308.png",
|
||||||
|
|
|
@ -312,9 +312,17 @@ Run the script in the `/.local/bin` directory:
|
||||||
```
|
```
|
||||||
bash zk_sync
|
bash zk_sync
|
||||||
```
|
```
|
||||||
and your git should be updated with that one c
|
|
||||||
4. Now it is time to submit this to the `launchd` scheduler. Navigate to
|
and your git should be updated with that one command with the updated time and the number of lines that were changed in the git commit.
|
||||||
|
|
||||||
|
|
||||||
|
Now that we have ensured that the script itself the hard part is over. The next step is to make sure that you are syncing at a consistent time!
|
||||||
|
|
||||||
|
4. Now it is time to submit this to the `launchd` scheduler. Navigate to `~/Library/LaunchAgents` as this is where you will be dropping your .plist file.
|
||||||
|
|
||||||
|
Then create the .plist which calls the previous `zk_sync` script that we made before. Make sure that you test it that you
|
||||||
5.
|
5.
|
||||||
|
6.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -74,4 +74,6 @@
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue