Giter Site home page Giter Site logo

.config's Introduction

MacOS

My MacOS setup and configuration ๐Ÿ’ป

This should be in ~/.config this way it can always be up to date with new changes.

Even tho each script inside .setup/scripts can be executed as its own, check .setup/install.sh as there are dependencies needed.

Structure

This is the structure used for this project.

.config/
โ”‚
โ”œโ”€ .data/ - All data generated during usage (as much as we can centralize)
โ”œโ”€ .setup/ - All files relative to the automated setup of the OS.
โ”‚  โ”œโ”€  backup/ - All possible backups and used by the script to restore stuff.
โ”‚  โ”œโ”€  scripts/ - A bunch of scripts used to restore the settings.
โ”‚  โ”œโ”€  backup.sh - A generic script to do backup and not forget anything.
โ”‚  โ”œโ”€  install.sh - The main script where all starts.
โ”‚  โ””โ”€  utils.sh - a few things to help during the setup.
โ”‚
โ”œโ”€ _external/ - Here we have all files that will be placed in somewere else as a symbolic link.
โ”‚  โ”œโ”€  home/ - All files and directories in here should be in `~/`.
โ”‚  โ””โ”€  ... - The others have specific directories.
โ”‚
โ”œโ”€ ... - Files not documented are originaly from `~/.config` folder
โ”‚
โ”œโ”€ LICENSE ยฏ\_(ใƒ„)_/ยฏ
โ””โ”€ README.md

Homebrew

With homebrew we basically manage as much as possible:

  • CLI
  • Apps
  • Fonts

All can be found within .setup/backup/Brewfile

Install

First, make sure you are logged in into the App Store as some apps are downloaded directly from there.

Some softwares still not compatible with Silicon processors, install rosetta if you see "Bad CPU type in executable" or similar.

softwareupdate --install-rosetta

Create SSH key or import the one you have:

#
ssh-keygen -t ed25519;

# Give the proper permissions if imported
chmod 600 ~/.ssh/config
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
# Clone
cd ~
git clone [email protected]:marlomgirardi/MacOS.git .config

Change SYSTEM_NAME to the desired computer name (optional).

# Install
SYSTEM_NAME=mbp ~/.config/.setup/install.sh

Apple

  • {domain} - Is like com.apple.dock.
  • {plist} - Is like com.apple.dock.plist. It can e a binary or a xml.

Most used commands

  • sudo find / -name "*.plist" | grep -v -E "(Info|version).plist" > plist.txt - Find all plist files except Info and version
  • osascript -e 'id of app "####"' - Find #### id to change the defaults
  • defaults domains - See all domains
  • defaults import {domain} {plist} - Import a plist
  • defaults export {domain} {pathToPlist} - Export a plist
  • plutil -convert xml1 {pathOfPlistToConvert} - Convert a binary plist to xml, easier to edit.

.config's People

Contributors

marlom-rvvup avatar marlomgirardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.