From ddee8784b445b623f370e9e1b44cf88e2538cc07 Mon Sep 17 00:00:00 2001 From: shwetha729 Date: Sat, 15 Jul 2023 00:30:03 -0400 Subject: [PATCH] Updated: 2023-07-15 00:30:02 + 5 --- enter/.obsidian/workspace.json | 10 ++++---- .../Obsidian/Obsidian-git process.md | 22 ++++++++++++++++ .../Commands + Settings/Aliases.md | 25 ++++++++++++++++++- 3 files changed, 51 insertions(+), 6 deletions(-) diff --git a/enter/.obsidian/workspace.json b/enter/.obsidian/workspace.json index c735f59..2348d5b 100644 --- a/enter/.obsidian/workspace.json +++ b/enter/.obsidian/workspace.json @@ -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", diff --git a/enter/Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md b/enter/Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md index 0e3fe16..2953c92 100644 --- a/enter/Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.md +++ b/enter/Coding Tips (Classical)/Project Vault/Obsidian/Obsidian-git process.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 + + + + + Label + us.shwetha.obsidian + ProgramArguments + + /Users/shwethajayaraj/bin/zk_sync.sh + + StartInterval + 15 + + + +``` + + 5. + 6. diff --git a/enter/Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md b/enter/Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md index 253de88..7d622d3 100644 --- a/enter/Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md +++ b/enter/Coding Tips (Classical)/Terminal Tips/Commands + Settings/Aliases.md @@ -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`` \ No newline at end of file +``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 + +``` + +