在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):caarlos0/macOS开源软件地址(OpenSource Url):https://github.com/caarlos0/macOS开源编程语言(OpenSource Language):Ruby 97.2%开源软件介绍(OpenSource Introduction):MacHow I setup a new Mac. 1. Install brew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2. Install depsgit clone https://github.com/caarlos0/mac.git
cd mac
# edit Brewfile to remove/add things
brew bundle 3. Install dotfilesOutdated: follow instructions in https://github.com/caarlos0/dotfiles.fish git clone https://github.com/caarlos0/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./script/bootstrap.fish
fish Not so-sensible defaults: ./macos/set-defaults 4. Setup SSH keysCreate a new SSH key or copy the previous one into Also fix perms: $ chmod 0600 ~/.ssh/id_rsa 5. Setup GPG signingCreate default config files: gpg --list-keys Setup pinentry: brew install pinentry-mac
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
killall gpg-agent Import the key: export GPG_TTY=$(tty)
keybase pgp export -q C14AB940 | gpg --import
keybase pgp export -q C14AB940 --secret | gpg --import --allow-secret-key-import
Setup git: git config --global gpg.program $(which gpg)
git config --global user.signingkey C14AB940
git config --global commit.gpgsign true
Test it: mkdir -p /tmp/test
cd $_
git init
git commit --allow-empty -m 'signsss'
git log --show-signature That's it! 6. Rebootsudo reboot 7. Profit! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论