I use Mac Prime to automatically tailor my Mac. Use this as a basis for your own setup.
Warning: Before using, you should first fork this repository, review the code, and remove things you don't want. Don't blindly use my settings. Use at your own risk!
packages
: Lists of installable apps and packagesdotfiles
: Commands and configurationspreferences
: Presets for System Preferencesdock
: Customize your Dock
brewfile
: An installable package list for Brewnpmfile
: An installable package list for NPMpipfile
: An installable package list for PIP
Run the following script to install all of my apps and programming tools.
~//packages/install.sh
Run the following script to install my dotfiles
. This will create symlinks in your $HOME
folder for each of the dotfiles. As you add or remove files, simply rerun this install script to sync your changes. Dead links get removed and new links get added.
Note: Some of the files in dotfiles
require packages
to be installed first. If you don't want to install my packages
, then you at least need stow
(ex. brew install stow
) to successfully install dotfiles
.
~//dotfiles/install.sh
.commands
Folder
The .commands
folder is intended for you to add and remove custom commands in a categorical way. Cherry-pick what you want. Refer to the template
file for a basic example of how to create your own commands.
Here's what I've got in there for you:
$
: Sensible Terminal defaultsdock
: Control your Dockdownload
: Download links, music, and videosfinder
: View files, get info, perform actions, extract, compress, etc.images
: Batch resizing imagesmac
: A CLI for macOS - ex. Bluetooth, Spotlight, Wi-Fi, Gatekeepermaintenance
: Common fixes and system maintenancenetwork
: Get IP addresses and flush your dnsringtone
: Turn any mp3 into a ringtone for your phonetext
: Format text and encode/decode in base64, binary, hex, md5, and sha1update
: Update all the thingsvideo
: Remux, encode, or merge videos
.path
File
Append to the $PATH
. Here's an example .path
file that adds /usr/local/bin
to the $PATH
.
export PATH="/usr/local/bin:$PATH"
Use this to add private code that you don't want to commit to a public repository. My .private
file looks something like this.
# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="Username"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"
# Use "gpg --list-secret-keys --keyid-format LONG" to find the signing key
# For users with 2 factor authentication enabled: if git asks you to sign in, use an access token as your password
# Get an access token here: https://github.com/settings/tokens
GIT_SIGNING_KEY="hahahahahahahaha"
git config --global user.signingkey "$GIT_SIGNING_KEY"
There are several other files in dotfiles
that set some reasonable defaults including .hushlogin
, .wgetrc
, .gitconfig
, and more.
Use preferences
to make adjustments you would otherwise set in the System Preferences app. Define this file once and reuse it whenever you like. If your settings ever get messed up, this is a great way to reset them to the way you prefer.
~//preferences
Customize your Dock in the dock
file. Use these commands:
dock add "Terminal"
: Add an application to the macOS Dockdock add:spacer
: Adds an empty space to macOS Dockdock clear
: Removes all persistent icons from macOS Dockdock reset
: Reset macOS Dock to default settings
Once you're done, run dock
to apply the changes.
~//dock
Keep track of your hosts in the hosts
file. Use the following command to replace your system hosts file with this one.
update hosts
You can install everything with this one-liner.
git clone https://github.com/BarryMode/mac-prime.git ~/ && ~//prime.sh
BarryMode |