Updated: 2023-07-15 00:30:02 + 5
parent
df6018332d
commit
ddee8784b4
|
@ -13,7 +13,7 @@
|
|||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
|
@ -117,7 +117,7 @@
|
|||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
|
@ -134,7 +134,7 @@
|
|||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
|
@ -157,7 +157,7 @@
|
|||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md"
|
||||
"file": "Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -182,9 +182,9 @@
|
|||
},
|
||||
"active": "74d85386e2039ea7",
|
||||
"lastOpenFiles": [
|
||||
"Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md",
|
||||
"Coding Tips (Classical)/Terminal Tips/Shells/Computers (operating system)/Apple Macbook/plist.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/Tips on Obsidian itself.md",
|
||||
|
|
|
@ -321,7 +321,29 @@ Now that we have ensured that the script itself the hard part is over. The next
|
|||
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
|
||||
|
||||
```shell
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>us.shwetha.obsidian</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/Users/shwethajayaraj/bin/zk_sync.sh</string>
|
||||
</array>
|
||||
<key>StartInterval</key>
|
||||
<integer>15</integer>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
```
|
||||
|
||||
|
||||
5.
|
||||
|
||||
6.
|
||||
|
||||
|
||||
|
|
|
@ -10,4 +10,27 @@ Aliases in your terminal make shortcuts a lot easier when you're typing, use the
|
|||
|
||||
then in the terminal type
|
||||
|
||||
``bbedit FILE_NAME``
|
||||
``bbedit FILE_NAME``
|
||||
|
||||
Aliases within your `.bashrc` file is just endlessly useful. This [stackOverflow answer ](https://stackoverflow.com/questions/16199581/open-sublime-text-from-terminal-in-macos/19556342#19556342)gets a lot of it right.
|
||||
|
||||
|
||||
---
|
||||
|
||||
### Shebang
|
||||
|
||||
This is a command that you often see at the top of the command but you never know what it does. This is used for every single type of Unix-like dydyem and is used to interpet an executable file. It is usually starting with `#!/` and leads to somewhere else.
|
||||
|
||||
Example:
|
||||
```
|
||||
#!/usr/bin/env sh
|
||||
Hello World!
|
||||
```
|
||||
|
||||
& you run the executable after `touch` creating one by:
|
||||
```
|
||||
chmod +x name_of_the_file
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue