-
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.
Merge pull request #13 from sasasin/sasasin-patch-1
Update README.md
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,62 @@ Ubuntu、Macを、大体いい感じにセットアップするスクリプト | |
# xcodeをインストールしてから.... | ||
cd dotfiles/mac/provision | ||
./initial_setup.sh | ||
|
||
# for macOS | ||
|
||
https://github.com/sasasin/dotfiles を ZIP 形式でダウンロード | ||
|
||
xcode, homebrew, Brewfile からのインストールをひととおり終えます。 | ||
|
||
``` | ||
% cd Download/dotfiles-master/mac/provision | ||
% ./initial_setup.sh | ||
``` | ||
|
||
github に ssh 接続を開通させる。 | ||
|
||
``` | ||
% eval "$(ssh-agent -s)" | ||
Agent pid 16185 | ||
% ssh -T [email protected] | ||
Hi sasasin! You've successfully authenticated, but GitHub does not provide shell access. | ||
``` | ||
|
||
gh コマンドを開通させる。 | ||
|
||
``` | ||
% gh auth login | ||
? What account do you want to log into? GitHub.com | ||
? You're already logged into github.com. Do you want to re-authenticate? Yes | ||
? What is your preferred protocol for Git operations? SSH | ||
? Upload your SSH public key to your GitHub account? /Users/shinnosuke.suzuki/.ssh/id_rsa.pub | ||
? Title for your SSH key: id_rsa.pub | ||
? How would you like to authenticate GitHub CLI? Login with a web browser | ||
! First copy your one-time code: XXXX-XXXX | ||
Press Enter to open github.com in your browser... | ||
✓ Authentication complete. | ||
- gh config set -h github.com git_protocol ssh | ||
✓ Configured git protocol | ||
HTTP 422: Validation Failed (https://api.github.com/user/keys) | ||
key is already in use | ||
``` | ||
|
||
ghq で dotfiles を手元に置く。いくつか dotfile を $HOME にシンボリックリンクを作る。 | ||
|
||
``` | ||
% ghq get [email protected]:sasasin/dotfiles.git | ||
clone ssh://[email protected]/sasasin/dotfiles.git -> /Users/shinnosuke.suzuki/src/github.com/sasasin/dotfiles | ||
git clone --recursive ssh://[email protected]/sasasin/dotfiles.git /Users/shinnosuke.suzuki/src/github.com/sasasin/dotfiles | ||
Cloning into '/Users/shinnosuke.suzuki/src/github.com/sasasin/dotfiles'... | ||
remote: Enumerating objects: 1863, done. | ||
remote: Counting objects: 100% (550/550), done. | ||
remote: Compressing objects: 100% (285/285), done. | ||
remote: Total 1863 (delta 236), reused 499 (delta 214), pack-reused 1313 | ||
Receiving objects: 100% (1863/1863), 7.05 MiB | 4.80 MiB/s, done. | ||
Resolving deltas: 100% (771/771), done. | ||
% cd src/github.com/sasasin/dotfiles | ||
% make_symlinks.sh | ||
``` | ||
|
||
hyper ターミナルで諸々利用可能になります |