forked from sb2nov/mac-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use terminal prompt for single line commands (sb2nov#276)
Having the terminal prompt makes it harder to copy-paste the command. Only use them for examples where the output is shown, so it's obvious that is the command and what is the result. Search and replaced with: rg -F "$ " --files-with-matches | xargs sed -i '' 's/$ //g'
- Loading branch information
Showing
32 changed files
with
193 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,20 @@ | |
|
||
What's a developer without [Git](http://git-scm.com/)? To install, run: | ||
|
||
$ brew install git | ||
brew install git | ||
|
||
When done, to test that it installed properly you can run: | ||
|
||
$ git --version | ||
git --version | ||
|
||
And `which git` should output `/usr/local/bin/git`. | ||
|
||
Next, we'll define your Git user (should be the same name and email you use for | ||
[GitHub](https://github.com/)): | ||
|
||
```sh | ||
$ git config --global user.name "Your Name Here" | ||
$ git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name Here" | ||
git config --global user.email "[email protected]" | ||
``` | ||
|
||
They will get added to your `.gitconfig` file. | ||
|
@@ -26,7 +26,7 @@ password every time you push a commit you can cache your credentials by running | |
the following command, as described in the | ||
[instructions](https://help.github.com/articles/caching-your-github-password-in-git/). | ||
|
||
$ git config --global credential.helper osxkeychain | ||
git config --global credential.helper osxkeychain | ||
|
||
## SSH Config for GitHub | ||
|
||
|
@@ -39,7 +39,7 @@ First, we need to check for existing SSH keys on your computer. We do this by | |
running: | ||
|
||
```sh | ||
$ ls -al ~/.ssh | ||
ls -al ~/.ssh | ||
# Lists the files in your .ssh directory, if they exist | ||
``` | ||
|
||
|
@@ -55,7 +55,7 @@ email. The default settings are preferred, so when you're asked to "enter a | |
file in which to save the key,"" just press Enter to continue. | ||
|
||
```sh | ||
$ ssh-keygen -t rsa -C "[email protected]" | ||
ssh-keygen -t rsa -C "[email protected]" | ||
# Creates a new ssh key, using the provided email as a label | ||
``` | ||
|
||
|
@@ -64,7 +64,7 @@ $ ssh-keygen -t rsa -C "[email protected]" | |
Run the following commands to add your SSH key to the `ssh-agent`. | ||
|
||
```sh | ||
$ eval "$(ssh-agent -s)" | ||
eval "$(ssh-agent -s)" | ||
``` | ||
|
||
If you're running macOS Sierra 10.12.2 or later, you will need to modify your | ||
|
@@ -82,15 +82,15 @@ No matter what operating system version you run you need to run this command to | |
complete this step: | ||
|
||
```sh | ||
$ ssh-add -K ~/.ssh/id_rsa | ||
ssh-add -K ~/.ssh/id_rsa | ||
``` | ||
|
||
### Adding a new SSH key to your GitHub account | ||
|
||
The last step is to let GitHub know about your SSH key. Run this command to copy your key to your clipboard: | ||
|
||
```sh | ||
$ pbcopy < ~/.ssh/id_rsa.pub | ||
pbcopy < ~/.ssh/id_rsa.pub | ||
``` | ||
|
||
Then go to GitHub and [input your new SSH | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.