dot42

command module
v0.0.0-...-5bf2037 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2021 License: ISC Imports: 8 Imported by: 0

README ΒΆ

dot42

Created by Antoine Coulon

Description

The aim of this application is to reliably manage settings and brew packages for students from the 42 Network on school computers.

Usage

Installing dot42

To install dot42, type the following command in your terminal

note: it it heavily recommanded to run this command on a clean session where brew is not yet installed locally.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/30c27b/dot42/master/scripts/install.sh)"

What does it do ?

When you run the installation script, the following actions will be executed:

  • this repository will be cloned to ~/.42
  • a LaunchAgent daemon will be added to ~/Library/LaunchAgents and run the login.sh script at each login
  • the dot42 binary will install Homebrew in your home directory and the packages in configs/Brewfile
  • the path to brew will be added to your .zshrc.

By default, the script will install Homebrew according to the following tree:

πŸ“¦ ~
 ┣ πŸ“œ .zshrc
 ┣ πŸ“‚ usr
 ┃ ┣ πŸ“‚ Homebrew
 ┃ ┃ β”— πŸ“œ (Brew repository)
 ┃ β”— πŸ“‚ bin
 ┃   β”— πŸ“œ (your binaries)
 β”— πŸ“‚ Applications
   β”— πŸ“œ (your applications)

Settings

Settings can be modified at ~/.42/configs/config.json.

  1. Homebrew will be installed according to this tree (with [example] corresponding to the "example" entry in config.json)

Installation tree

πŸ“¦ ~
 ┣ πŸ“œ [zshrcPath]
 ┣ πŸ“‚ [brewPath]
 ┃ ┣ πŸ“‚ [brewName]
 ┃ ┃ β”— πŸ“œ [brewRepository] (is cloned here)
 ┃ β”— πŸ“‚ bin
 ┃   β”— πŸ“œ (your binaries)
 β”— πŸ“‚[brewCaskPath]
   β”— πŸ“œ (your applications)

Correspondig settings

{
	"brewPath": "usr",
	"brewCaskPath": "Applications",
	"brewName": "Homebrew",
	"brewRepository": "https://github.com/Homebrew/brew.git",
	"zshrcPath": ".zshrc"
}
  1. The dark theme can be set here:
{
	"darkTheme": true
}
  1. You can change macOS defaults settings by adding them to the defaults parameter in this format:
{
	"defaults": [
		{
			"domain": "Apple Global Domain",
			"key": "com.apple.swipescrolldirection",
			"valueType": "bool",
			"value": "false"
		}
	]
}

note: To update your settings without delogging, type ~/.42/bin/dot42 load.

dot42 is distributed under the ISC license.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL