Updated: 2023-07-15 00:30:02 + 5

main
shwetha729 2023-07-15 00:30:03 -04:00
parent df6018332d
commit ddee8784b4
3 changed files with 51 additions and 6 deletions

View File

@ -13,7 +13,7 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md", "file": "Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.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)/Project Vault/Obsidian/Obsidian-git process.md", "file": "Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.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)/Project Vault/Obsidian/Obsidian-git process.md", "file": "Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.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)/Project Vault/Obsidian/Obsidian-git process.md" "file": "Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md"
} }
} }
} }
@ -182,9 +182,9 @@
}, },
"active": "74d85386e2039ea7", "active": "74d85386e2039ea7",
"lastOpenFiles": [ "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/plist.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)/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",

View File

@ -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. 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 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. 5.
6. 6.

View File

@ -10,4 +10,27 @@ Aliases in your terminal make shortcuts a lot easier when you're typing, use the
then in the terminal type 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
```