Table of Contents generated with DocToc
my dotfiles
xcode-select --install
sudo spctl --master-disable
softwareupdate --install-rosetta
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
your github account login.
open -a Safari "https://github.com"
brew install gh
# Create SSH key & Github Auth
gh auth login
Steps for Github Cli
1. Choice Github.com or Github Enterprise
? What account do you want to log into? [Use arrows to move, type to filter]
> GitHub.com
GitHub Enterprise Server
2. Choice Protocol
? What is your preferred protocol for Git operations? [Use arrows to move, type to filter]
HTTPS
> SSH
3. Generate new SSH Key or choice exsits SSH Key
Not exsits SSH KEY
? Generate a new SSH key to add to your GitHub account? (Y/n)
# usually empty password
? Enter a passphrase for your new SSH key (Optional)
Already exists SSH Key Question
? You're already logged into github.com. Do you want to re-authenticate? (y/N)
4. Choice Authenticate
? 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...
Response
✓ Authentication complete. Press Enter to continue...
- gh config set -h github.com git_protocol ssh
✓ Configured git protocol
✓ Uploaded the SSH key to your GitHub account: $HOME/.ssh/id_ed25519.pub
✓ Logged in as {your account name}
mv ~/.ssh/id_ed25519 ~/.ssh/`whoami`.github.id_ed25519
mv ~/.ssh/id_ed25519.pub ~/.ssh/`whoami`.github.id_ed25519.pub
cat <<EOF > ~/.ssh/config
Host github.com
HostName github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/private.github.id_ed25519
EOF
eval "$(ssh-agent -s)"
ssh -T git@github.com
git clone git@github.com:ryurock/dotfiles.git
brew install mask
Change dir Your OS and OS Version
macos
└── m1
└── monterey
├── README.md
└── maskfile.md
change dir.
cd /macos/m1/monterey
help
mask help