Skip to content

Instantly share code, notes, and snippets.

@isuke
Last active January 23, 2024 12:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isuke/8545961f4fcf21711b83883c13130abb to your computer and use it in GitHub Desktop.
Save isuke/8545961f4fcf21711b83883c13130abb to your computer and use it in GitHub Desktop.

Initial Setup

First Mac Settings

  • Password
  • Touch ID
  • Dock
  • keyborad
    • 装飾キー

karabiner-elements

https://pqrs.org/osx/karabiner/

google IME

https://www.google.co.jp/ime/

divvy

http://mizage.com/divvy/

iTerm2

https://iterm2.com/

Terminal Setup

brew

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

git

$ brew install git

tig

$ brew install tig

fzf

$ brew install fzf
$ $(brew --prefix)/opt/fzf/install

exa

$ brew install exa

bat

$ brew install bat

gsed and gls

$ brew install coreutils
$ brew install gnu-sed

zsh

$ brew install zsh

$ # echo "/usr/local/bin/zsh" >> /etc/shells
$ echo "/opt/homebrew/bin/zsh" >> /etc/shells

$ # chsh -s /usr/local/bin/zsh
$ chsh -s /opt/homebrew/bin/zsh

$ # curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh

$ bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"
$ zinit self-update

$ cd ~
$ git clone https://github.com/isuke/functions.git
$ cd functions
$ source functions.zsh

$ cd ~
$ git clone https://github.com/isuke/dotfiles.git
$ cd dotfiles
$ source dotfiles.zsh

mise

$ brew install mise

$ mise install rust@lastet
$ mise use -g rust@lastet

$ mise install node@20
$ mise use -g node@20.11.0

$ mise install ruby@3.3
$ mise use -g ruby@3.3.0
$ brew install ruby-build
$ ruby-build 3.3.0 /opt/rubies/ruby-3.3.0 -- --enable-yjit

anyenv

$ # git clone https://github.com/anyenv/anyenv ~/.anyenv
$ brew install anyenv
$ exec $SHELL -l

$ anyenv install --init

$ anyenv install rbenv
$ anyenv install nodenv
$ exec $SHELL -l

$ mkdir -p $(anyenv root)/plugins

$ git clone https://github.com/znz/anyenv-update.git $(anyenv root)/plugins/anyenv-update

$ anyenv update

$ brew install openssl@3 readline libyaml gmp # for ruby
$ brew install rust # for ruby 3.2.2
$ ruby-build 3.2.2 /opt/rubies/ruby-3.2.2 -- --enable-yjit # for ruby 3.2.2

yarn

$ # Node.js >= 16.10
$ corepack enable
$ # Node.js < 16.10
$ npm i -g corepack
$ # Node.js < 14 classic
$ npm install --global yarn

jq

$ brew install jq

tree

$ brew install tree

terminal-notifier

$ brew install terminal-notifier

fonts

$ brew install fontconfig

Ricty

$ brew tap sanemat/font
$ brew install ricty --with-powerline
$ cp -f /usr/local/opt/ricty/share/fonts/Ricty*.ttf ~/Library/Fonts/
$ fc-cache -vf
  • Ricty Discord
  • Ricty Discord for Powerline

白源

$ brew tap homebrew/cask-fonts
$ brew install font-hackgen
$ brew install font-hackgen-nerd
$ fc-cache -vf
  • HackGen
  • HackGen Console
  • HackGen NF
  • HackGen Console NF

PlemolJP

$ brew tap homebrew/cask-fonts
$ brew install font-plemol-jp
$ brew install font-plemol-jp-nf
$ fc-cache -vf
  • PlemolJP
  • PlemolJP Console
  • PlemolJP NF
  • PlemolJP Console NF

MySQL

$ brew install mysql
$ mysql.server start
$ mysql.server stop

postgreSQL

$ brew install postgresql
$ brew services start postgresql

imagemagick

$ brew install imagemagick

pgweb

$ brew install pgweb
$ # brew cask install pgweb # old

git-consistent

$ # yarn global add git-consistent
$ npm install -g git-consistent

vue-cli

$ # yarn global add @vue/cli
$ npm install -g @vue/cli

netlify-cli

$ # yarn global add netlify-cli
$ npm install -g netlify-cli

direnv

$ brew install direnv

httpie

$ brew install httpie

Second Mac Settings

finder setting

$ defaults write com.apple.finder AppleShowAllFiles -boolean true
$ defaults write com.apple.screencapture name Screenshot
$ rm ~/{Downloads,Documents,Applications,Desktop,Library,Movies,Pictures,Music,Public}/.localized | rm /Applications/.localized
$ killall Finder

$ open ~/.Trash

screenshot setting

$ defaults write com.apple.screencapture location ~/Downloads
$ killall SystemUIServer

apps

cacher

https://www.cacher.io/

Dropbox

https://www.dropbox.com/install#downloaded

vscode

https://code.visualstudio.com/

Sequel Pro

https://www.sequelpro.com/ https://sequelpro.com/test-builds

Sequel Ace

https://apps.apple.com/us/app/sequel-ace/id1518036000?ls=1

clipy

https://clipy-app.com/

skitch

https://evernote.com/intl/jp/products/skitch

GIPHY Capture

https://giphy.com/apps/giphycapture

kindle

https://www.amazon.co.jp/gp/digital/fiona/kcp-landing-page/ref=klp_mn

Table Tool

https://itunes.apple.com/app/table-tool/id1122008420?mt=12

Docker

https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac


experimental

fish

$ brew install fish
$ echo "/usr/local/bin/fish" >> /etc/shells

$ chsh -s /usr/local/bin/fish

$ curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisherman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment