crispgm/dotfiles
Fork: 12 Star: 101 (更新于 2024-11-09 00:00:38)
license: 暂无
Language: Lua .
dotfiles to provision a new macOS with cosy dev setups
最后发布版本: v2.2.0 ( 2021-02-22 15:30:06)
dotfiles
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
- Setup shell login promtp with
motd
: ASCII art is generated with http://patorjk.com/software/taag/ - Setup
.bash_profile
.bashrc
最近版本更新:(数据更新于 2024-09-27 16:04:10)
2021-02-22 15:30:06 v2.2.0
主题(topics):
brewfile, dotfiles, mac-bootstrap, mac-dotfiles, mac-setup, neovim-dotfiles, rcm, shell, sync
crispgm/dotfiles同语言 Lua最近更新仓库
2024-11-21 03:52:06 koreader/koreader
2024-11-20 23:41:49 xiaorouji/openwrt-passwall
2024-11-20 16:46:43 xiaorouji/openwrt-passwall2
2024-11-19 22:36:38 LazyVim/LazyVim
2024-11-18 05:33:22 olimorris/codecompanion.nvim
2024-11-10 02:39:54 kenzok8/small