Dotfiles
These instructions partly automates the setup of a device using macOS with an Apple Silicon ship.
Setup your Mac
Deeply inspired by Dries Vints dotfiles repository.
- Update macOS to the latest version (System Preferences / Software Update).
- Install Xcode from the App Store and open it.
- Install macOS Command Line Tools by running
xcode-select --install
in Terminal.
- Install Rosetta by running
sudo softwareupdate --install-rosetta
.
- Copy your public and private SSH keys to
~/.ssh
and make sure their permissions are set to 600
.
- Add your SSH private keys to the authentication agent by running
ssh-add ~/.ssh/private_key_name
.
- Clone this repository to
~/.dotfiles
.
- Append
/usr/local/bin/zsh
to the end of your /etc/shells
file. ⚠️ seems not needed, to be confirmed
- Enter the
.dotfiles
directory and run chmod +x install.sh
(check if still necessary after #583a9a5).
- Run
./install.sh
to start the installation.
- Restore preferences by running
mackup restore
(make sure your storage provider is connected).
- Restart your computer to finalize the process.
Post setup
- Go to the App Store to retrieve the apps that are not in your Brewfile.
- And now, some app by app notes… 👇
Apple Simulator
In Xcode:
- go to menu Window, Devices and Simulators, Simulators to add additional iOS versions down to iOS 14.0.1.
- go to menu Xcode, Settings, Platforms to add additional devices.
MySQL
- (optional) Security: set a root password by running
sudo mysql_secure_installation
.
- Databases migration: by running
mysql -u root -p < alldb.sql
, you can import all local databases you have exported with mysqldump -u root -p --all-databases > alldb.sql
.
- Favorites and passwords migration or migration from Sequel Pro to Sequel Ace: follow the dedicated guide.
- If you need access to remote servers, grant Sequel Ace the access to your
~/.ssh/config
, ~/.ssh/known_hosts
and the needed SSH keys.
Git
- In
.gitconfig
, set a name and an email address.
Mooom
- As stated in Moom FAQ,
/Library/Preferences/com.manytricks.Moom.plist
: “Macs may have differing numbers of displays, different resolutions, etc. Saved layouts for one won't make sense for another.”
Sublime Text
- In Sublime Text, go to Tools, Install Package Control. Then, [to be completed].