• Stars
    star
    101
  • Rank 336,561 (Top 7 %)
  • Language
    Lua
  • Created over 10 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

dotfiles to provision a new macOS with cosy dev setups

dotfiles

GitHub CI platform

Introduction

This is a dotfiles project which may be used to provision a new macOS with cosy dev setups. And it is tested with GitHub Actions CI. The checkbox denotes whether it is done by bootstrap. More screenshots here.

Inspired by KrauseFx/new-mac.

For Arch Linux, please refer to crispgm/arch-linux-dotfiles.

Bootstrap

$ xcode-select --install # or download here <https://developer.apple.com/download/more/>
$ git clone --recursive https://github.com/crispgm/dotfiles.git
# Login to AppStore with Apple ID, since there are MAS apps in Brewfile
$ cd dotfiles
$ ./bootstrap

Project Layout

  • bootstrap: entry point of dotfiles bootstrapping.
  • Brewfile: all Homebrew formulae and casks managed by Homebrew Bundle.
  • rc: dotfiles managed by rcm.
  • app: customized boostrapping scripts for applications.

Dev Setups

Terminal & Shell

  • Install Homebrew
  • Setup Hostname sudo scutil --set HostName david-macbook
  • Install softwares and fonts from Brewfile with brew bundle. HINT: Login to AppStore at first. Some of the applications from Mac App Store may need purchase.
  • Install zsh, oh-my-zsh and setup .zshrc
  • Setup Alacritty
  • Setup tmux
  • Setup Neovim

Git

  • Git global config
  • Git work config

Ruby

  • Setup .gemrc
  • Setup bundler's mirror: bundle config mirror.https://rubygems.org https://gems.ruby-china.com if you locate in China mainland

VSCode

  • Create code SymLink: sudo ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code ~/Applications/code
  • Install Setting Sync extensions and then sync settings

File Sync

  • Install your favorite file sync service (e.g. Dropbox, Google Drive, One Drive ... I prefer Dropbox because it works with Alfred)
  • Setup syncing folder for apps (e.g. Alfred, Dash ...)

Karabiner

  • Setup karabiner.json

macOS Setups

Trackpad

  • Tap to click
  • Seconary click: Click in bottom right corner

Control Center

Battery

  • Show Battery in Control Center
  • Show percentage

Time

  • Set time zone automatically using current location
  • Use a 24-hour clock and show date

Siri

  • Disable Siri system wide and remove Siri button from Touch Bar

Finder

  • New Finder show Desktop
  • Remove labels and clean up Sidebar

Dock

  • Change to the size you like
  • Cancel: Show recent application in Dock
  • Downloads: View content as Grid
  • Add blank seperator: defaults write com.apple.dock persistent-apps -array-add '{tile-type="spacer-tile";}'

Optional Setups

bash

More Repositories

1

resume

A minimalist resume template for Jekyll and Hexo
HTML
298
star
2

awesome-engineering-blogs

A curated list of awesome engineering blogs.
248
star
3

nvim-go

A minimal implementation of Golang development plugin for Neovim
Lua
132
star
4

telescope-heading.nvim

An extension for telescope.nvim that allows you to switch between headings
Lua
118
star
5

nvim-tabline

nvim port of tabline.vim with Lua
Lua
75
star
6

cmp-beancount

nvim-cmp source for beancount accounts
Lua
32
star
7

arch-linux-dotfiles

dotfiles for Arch Linux
Python
27
star
8

alfred-markdown-table

Generate Markdown Table with Alfred Workflow
Go
25
star
9

alfred-nord

Nord theme for Alfred
23
star
10

olympia

📷 Control Olympus cameras via Wi-Fi like a boss (WIP)
Ruby
19
star
11

crispgm.com

CrispDev, My Web Home Page
HTML
15
star
12

alfred-cron

Convert Cron expression to human readable text
Go
9
star
13

minimal

A minimalism theme for Jekyll
SCSS
9
star
14

weekly

A personal curation of tech articles
Ruby
9
star
15

holy-images

🕶 A simple image sharing social network
Ruby
8
star
16

gsm

Gem Sources Manager
Ruby
7
star
17

wiki-theme

Wiki theme for Jekyll
CSS
6
star
18

go-van

Simple project files watcher and deployer
Go
6
star
19

kicker-cli

Foosball data analyzer for Kickertool
Go
5
star
20

caravan

Simple project files watcher and deployer
Ruby
5
star
21

dockerfiles

Dockerfiles: FROM crisp
Dockerfile
5
star
22

heelbot

[Experimental] Build and run awesome bots to enable work automations
Ruby
5
star
23

alfred-strlen

Show string length with Alfred
Go
4
star
24

markdown-table-formatter

Format tables in GitHub Flavored Markdown
Ruby
4
star
25

spacifier

A simple & handy tool to insert a space between a Chinese character and a western character
Ruby
4
star
26

nvim-auto-ime

Automatically switch Input Method (only on macOS)
Lua
3
star
27

resume-hexo-example

Crisp Minimal Resume example for Hexo
HTML
3
star
28

foosball-referee

A web application for foosball referee
HTML
3
star
29

read-track

Personal reading list
Go
2
star
30

go-g

Go utility packages
Go
2
star
31

apartment

Source of website for my apartment
HTML
2
star
32

moderu

Photographer's album theme for モデル (Model)
CSS
2
star
33

dottie

Yet another .dotfiles manager written in Rust
Rust
2
star
34

black-white-blue

Simple and minimal project home page theme for Jekyll
HTML
1
star
35

festival.js

Super simple festival detector
JavaScript
1
star
36

crispgm

1
star
37

clutters

Code Clutters
JavaScript
1
star
38

github-meta-badges

Simple GitHub Metadata Badges (e.g. stars, issues, and more)
Ruby
1
star
39

dslr

Simple DSL in Ruby
Ruby
1
star
40

word-kanban

📘 A simple Kanban-like word book
JavaScript
1
star