Skip to content

Commit

Permalink
Merge pull request #13 from sasasin/sasasin-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
sasasin authored Sep 11, 2022
2 parents 2e7b0f4 + 6c6da93 commit b9ad9a8
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ターミナルで諸々利用可能になります

0 comments on commit b9ad9a8

Please sign in to comment.