mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
chore: add required setup steps for macOS development
The changes add several necessary setup steps for a complete macOS development environment including Rosetta, GPG configuration, project initialization, and system preferences restoration.
This commit is contained in:
@@ -6,6 +6,8 @@ First, install the Xcode command-line tools:
|
||||
|
||||
```sh
|
||||
xcode-select --install
|
||||
sudo softwareupdate --install-rosetta
|
||||
sudo xcodebuild -license accept
|
||||
```
|
||||
|
||||
## Install Homebrew
|
||||
|
||||
32
setup.sh
32
setup.sh
@@ -48,6 +48,10 @@ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||
# Install tmux plugins
|
||||
~/.tmux/plugins/tpm/bin/install_plugins
|
||||
|
||||
# Create folders
|
||||
mkdir -p ~/.config
|
||||
mkdir -p ~/.gnupg
|
||||
|
||||
# Symlink dotfiles
|
||||
./install
|
||||
|
||||
@@ -100,8 +104,36 @@ if ! command -v fish &>/dev/null; then
|
||||
brew install fish
|
||||
fi
|
||||
|
||||
# Add fish to /etc/shells
|
||||
echo "/opt/homebrew/bin/fish" | sudo tee -a /etc/shells
|
||||
|
||||
# Change default shell to fish
|
||||
echo "Changing default shell to fish"
|
||||
run_with_sudo chsh -s $(which fish) $USER
|
||||
|
||||
# Add fish to /etc/shells
|
||||
echo "/opt/homebrew/bin/fish" | sudo tee -a /etc/shells
|
||||
|
||||
# Login to atuin
|
||||
atuin login
|
||||
|
||||
# Configure GPG to use pinentry-mac
|
||||
echo "Configuring GPG to use pinentry-mac …"
|
||||
echo "pinentry-program /opt/homebrew/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
|
||||
gpgconf --kill gpg-agent
|
||||
gpg-agent --daemon
|
||||
./bin/gpg-keys-restore
|
||||
|
||||
# Install asdf versions
|
||||
./private/asdf/init.sh
|
||||
asdf reshim
|
||||
|
||||
# Project setup
|
||||
./private/bin/project-setup
|
||||
|
||||
# Restore MacOS settings, preferences, and launchagents
|
||||
./bin/launchagents-restore
|
||||
./bin/preferences-restore
|
||||
./bin/macos-settings
|
||||
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user