Skip to content

marissask/mac-prime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mac Prime

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!

Overview

  • packages: Lists of installable apps and packages
  • dotfiles: Commands and configurations
  • preferences: Presets for System Preferences
  • dock: Customize your Dock

Packages

Package Lists

Install Packages

Run the following script to install all of my apps and programming tools.

~//packages/install.sh

Dotfiles

Install Dotfiles

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

Customize Dotfiles

.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 defaults
  • dock: Control your Dock
  • download: Download links, music, and videos
  • finder: View files, get info, perform actions, extract, compress, etc.
  • images: Batch resizing images
  • mac: A CLI for macOS - ex. Bluetooth, Spotlight, Wi-Fi, Gatekeeper
  • maintenance: Common fixes and system maintenance
  • network: Get IP addresses and flush your dns
  • ringtone: Turn any mp3 into a ringtone for your phone
  • text: Format text and encode/decode in base64, binary, hex, md5, and sha1
  • update: Update all the things
  • video: 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"

.private File

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"

Other Dotfiles

There are several other files in dotfiles that set some reasonable defaults including .hushlogin, .wgetrc, .gitconfig, and more.

Preferences

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

Dock

Customize your Dock in the dock file. Use these commands:

  • dock add "Terminal": Add an application to the macOS Dock
  • dock add:spacer: Adds an empty space to macOS Dock
  • dock clear: Removes all persistent icons from macOS Dock
  • dock reset: Reset macOS Dock to default settings

Once you're done, run dock to apply the changes.

~//dock

Hosts

Keep track of your hosts in the hosts file. Use the following command to replace your system hosts file with this one.

update hosts

One-line Install

You can install everything with this one-liner.

git clone https://github.com/BarryMode/mac-prime.git ~/ && ~//prime.sh

Author

BarryMode
BarryMode

About

Automatically tailor your  Mac

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%