Macの設定(超適当)
Page content
雑な書き方だけどMacのインストールのファイルなどを公開
Homebrewのインストール
以下のファイルの内容()
Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
brew "cloc"
brew "colordiff"
brew "coreutils"
brew "curl"
brew "ffmpeg"
brew "gnu-sed"
brew "go"
brew "graphviz"
brew "htop"
brew "hugo"
brew "jq"
brew "mas"
brew "nkf"
brew "nodebrew"
brew "pandoc"
brew "plantuml"
brew "starship"
brew "tree"
brew "wget"
brew "yarn"
brew "yt-dlp"
brew "zsh-autosuggestions"
brew "zsh-completions"
brew "zsh-syntax-highlighting"
cask "adobe-acrobat-reader"
cask "alfred"
cask "apparency"
cask "astah-professional"
cask "atok"
cask "bbedit"
cask "bettertouchtool"
cask "beyond-compare"
cask "bootstrap-studio"
cask "brave-browser"
cask "brooklyn"
cask "browserosaurus"
cask "calibre"
cask "coderunner"
cask "dash"
cask "docker"
cask "drawio"
cask "firefox"
cask "font-ricty-diminished"
cask "google-chrome"
cask "gyazmail"
cask "istat-menus"
cask "iterm2"
cask "jedit-omega"
cask "jetbrains-toolbox"
cask "joplin"
cask "kaleidoscope"
cask "mamp"
cask "openinterminal"
cask "path-finder"
cask "paw"
cask "qlcolorcode"
cask "qlimagesize"
cask "qlmarkdown"
cask "qlprettypatch"
cask "qlstephen"
cask "qlvideo"
cask "quicklook-csv"
cask "quicklook-json"
cask "quicklookapk"
cask "quicklookase"
cask "smartgit"
cask "stoplight-studio"
cask "sublime-text"
cask "suspicious-package"
cask "syntax-highlight"
cask "transmit"
cask "typora"
cask "vivaldi"
cask "webpquicklook"
cask "zoc"
mas "Affinity Designer", id: 824171161
mas "Display Menu", id: 549083868
mas "Graphic", id: 404705039
mas "GraphicConverter 11", id: 1465576485
mas "Hidden Bar", id: 1452453066
mas "Keka", id: 470158793
mas "LINE", id: 539883307
mas "Microsoft Excel", id: 462058435
mas "Microsoft PowerPoint", id: 462062816
mas "OmniPlan", id: 1460319993
mas "Peek", id: 1554235898
mas "Pixelmator Pro", id: 1289583905
mas "Power JSON Editor", id: 499768540
mas "QREncoderPro", id: 479397466
mas "RunCat", id: 1429033973
mas "SimpleMind Pro", id: 434808346
mas "Xcode", id: 497799835
mas "デスクトップ時計 +", id: 892038932
zshrc
~/.zshrc
# --------------------------------------------------------------------
# 基本的な環境変数
# --------------------------------------------------------------------
export LANG=ja_JP.UTF-8
export EDITOR=vim
export PAGER=lv
# Python venv
if [ -e venv/bin/activate ]; then
# 存在する場合
source venv/bin/activate
fi
# --------------------------------------------------------------------
# alias
# --------------------------------------------------------------------
alias brew='PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin brew'
alias ls='ls -G'
alias brew='PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin brew'
alias sed='gsed'
alias clean='rm -rf ~/Library/Developer/Xcode/DerivedData'
alias diff='colordiff'
alias vi=vim
# --------------------------------------------------------------------
# 環境変数
# --------------------------------------------------------------------
# path
export PATH=/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH
# starship
eval "$(starship init zsh)"
# android
export ANDROID_NDK_ROOT=$HOME/Library/Android/sdk/ndk/24.0.8215888
export ANDROID_NDK_HOME=$HOME/Library/Android/sdk/ndk/24.0.8215888
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$ANDROID_HOME/bin:$PATH:${HOME}/Library/Android/sdk/platform-tools:$HOME/Library/Android/sdk/tools/bin
# plantuml
export PLANTUML_LIMIT_SIZE=32768
# nodebrew
export PATH=$HOME/.nodebrew/current/bin:$PATH
# homebrew
export PATH="/usr/local/sbin:$PATH"
# zsh関連
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
if type brew &>/dev/null; then
FPATH=/usr/local/share/zsh-completions:/usr/local/share/zsh/site-functions:/usr/share/zsh/site-functions:/usr/share/zsh/5.8.1/functions
autoload -Uz compinit
compinit
fi
starshipの設定
mkdir -p ~/.config && touch ~/.config/starship.toml
[directory]
#ディレクトリ表示
truncation_length = 100
truncate_to_repo = false
[memory_usage]
disabled = false
threshold = -1
symbol = " "
style = "bold dimmed blue"
format = "$symbol[${ram}( | ${swap})]($style) "
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
#バッテリーを表示するタイミング、表示する際の文字のスタイル
threshold = 100
style = "bold blue"
[time]
#時間の表示をオンにして12時間表示に
use_12hr = false
time_format = "%T"
format = "🕙 $time($style) "
style = "bright-white"
disabled = false
[package]
disabled = true
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
[character]
success_symbol = "[➜](bold green) "
error_symbol = "[✗](bold red) "
[git_branch]
format = " [$symbol$branch]($style) "
symbol = "🍣 "
style = "bold yellow"
[git_commit]
commit_hash_length = 8
style = "bold white"
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
[git_status]
conflicted = "⚔️ "
ahead = "🏎️ 💨 ×${count}"
behind = "🐢 ×${count}"
diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}"
untracked = "🛤️ ×${count}"
stashed = "📦 "
modified = "📝 ×${count}"
staged = "🗃️ ×${count}"
renamed = "📛 ×${count}"
deleted = "🗑️ ×${count}"
style = "bright-white"
format = "$all_status$ahead_behind"
[python]
format = "[$symbol$version]($style) "
style = "bold green"
[rust]
format = "[$symbol$version]($style) "
style = "bold green"
[username]
style_user = "bold dimmed blue"
show_always = false