M1 mac miniを買ったので設定していく
Homebrew
/optにインストールする。
cd /opt curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew # パスは手動で通す echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
rictyフォントをインストール
brew install font-ricty-diminished --cask
vscodeでバッククオートの表示がおかしくなるのを直すためfix_ricty.peを作る
#!/usr/bin/env fontforge Open($1) Select(0u0060) SetGlyphClass("base") Generate($1)
実行する
./fix_ricty.pe ~/Library/Fonts/Ricty-Bold.ttf ./fix_ricty.pe ~/Library/Fonts/Ricty-Regular.ttf ./fix_ricty.pe ~/Library/Fonts/RictyDiminished-Bold.ttf ./fix_ricty.pe ~/Library/Fonts/Ricty-Regular.ttf ./fix_ricty.pe ~/Library/Fonts/RictyDiminished-Regular.ttf
starship
# プロンプトをカスタマイズする brew install starship mkdir ~/.config cd .config touch starship.toml echo 'eval "$(starship init zsh)"' >> ~/.zshrc
~/.config/starship.toml
add_newline = false [character] # Prompt format [username] style_user = "fg:#00c200" style_root = "white" format = " [$user]($style)[@](bold yellow)" disabled = false show_always = true [hostname] ssh_only = false format = "[$hostname](bold fg:#00c200): " disabled = false [directory] read_only = "🔒" read_only_style= "bold white" style = "fg:#A7F3E4" [docker_context] format = "via [🐋 $context](blue bold)" [cmd_duration] disabled = true [aws] format = "on [$symbol$profile]($style) " style = "bold cyan" symbol = "🅰 " [aws.region_aliases] us-east-1 = "est-1" # Git [git_branch] style = "fg:white bg:black" [git_status] style = "fg:#E29191" # Language Environments [package] style = "bold fg:#5E5E5E" [python] style = "bold fg:#5E5E5E" symbol = "[](bold yellow) " [nodejs] style = "bold fg:#5E5E5E" symbol = "[⬢](bold green) "
exa
# lsの代わり brew install exa echo "alias ls='exa'" >> ~/.zshrc echo "alias ll='exa -Fla'" >> ~/.zshrc echo "alias tree='exa --tree -F'" >> ~/.zshrc
emacsキーバインドにしていく。少しずつやる。
wget https://www.number1cruncher.com/repository/karabiner.json