Skip to content

samuelramox/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macOS Dotfiles

This is a simple and flexible dotfiles and scripts to setup macOS.

Table of Contents

  1. What are dotfiles
  2. Features
  3. Installation
  4. Manual setup
  5. Resources

What are dotfiles

Dotfiles are configuration files on Unix-based systems. At first they are just hidden configuration files of the system (that's why the reason for starting with .). However, we can use them to make it easier to configure our computers, with many advantages:

  • Easy to format a new computer
  • Automation of tasks
  • Easy maintenance
  • Storage in remote locations (GitHub, iCloud, Dropbox, etc)
  • Versioning
  • Import to multiple computers
  • Customize the terminal

Features

Check linked files to more details.

Installation files

  • apps.sh - installs Homebrew, Homebrew Cask Upgrade and some apps.
  • dock.sh - macOS Dock items customization.
  • dotfiles.sh - installs Oh My Zsh, .zshrc and Git configs.
  • hostname.sh - change hostname (MacBook name).
  • macos.sh - macOS defaults configs.
  • npm.sh - install npm packages.
  • setup.sh - main installer.
  • ssh.sh - generate SSH.
  • user.sh - user data to configuration of Git and SSH.
  • util.sh - support functions for other installers.

Note: These files will be discarded later.

Settings Files

Note: These files are permanent.

Installation

git clone https://github.com/samuelramox/dotfiles.git && cd dotfiles

./setup.sh

Note: You can also download a specific release.

Explaining the process

The setup.sh process will open user.sh for you to add your user data. This data is necessary for the configuration and functioning of Git and SSH.

# - GIT_NAME: name and surname to use in Git settings.
# - GIT_EMAIL: email to use in Git settings.
# - SSH_EMAIL: email to use in SSH settings.
# - HOSTNAME: hostname/computer name (optional, leave empty if you don't want to change).

It will then install the following scripts, in this order:

Note: I suggest you read these files and turn your preferences on/off before installation.

Manual setup

Visual Studio Code settings are loaded by the Settings Sync, so you will have to change manually or load your settings.

Visual Studio Code - Config

Code → Preference → Settings (or CMD + ,) and add or edit the following values:

"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": true,

Resources