Available languages:
New Mac Setup
Table of Contents
I bought a new Mac and wanna leave a memo about my setup from the beginning for myself.
(I referred to the below post for catching up new tools, thanks :) )
brew history
I decided to manage gadgets by brew as much as possible. And so far that's worked. So my setup history is equal to brew history at least now.
$ history 0 | grep brew
1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
3 echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> /Users/canalun/.zprofile
4 eval "$(/opt/homebrew/bin/brew shellenv zsh)"
8 brew install google-chrome
9 brew install --cask nikitabobko/tap/aerospace\n
10 brew install --cask raycast
11 brew install --cask alt-tab\n
12 brew install --cask ghostty
16 brew install git
24 brew install mise
36 brew install tree
139 brew install clipy
149 brew install --cask visual-studio-code
150 brew install --cask element
- aerospace seems to be better than magnet for me, because it's automatic.
- raycast is nice for managing Chrome profiles.
- mise is super.
- clipy is a good friend.
- vscode is chosen, because I work on Chromium and Firefox and they provide default configs for it.
- google ime can't be installed via brew... I've not installed any ime yet. Let me think.
- i use Line browser extension version.
others
not brew-managed tools (2025/1/31)
# for firefox
$ ./mach install-moz-phab
prompt
I set the prompt like this.
(venv)canalunは~/canalun_company_2なう😭
This is realized as below.
As for mise part, please refer to this post(though only available in Japanese).
FACE_LIST=("😆" "😊" "😭" "😂" "😘" "😪" "🐶" "👾" "🏠")
function set_random_face() {
FACE=$FACE_LIST[$(( RANDOM % ${#FACE_LIST[@]} + 1 ))]
}
precmd_functions+=(set_random_face)
setopt PROMPT_SUBST
PS1='%F{green}%n%fは%F{cyan}%~%fなう${FACE}
\$ '
_venv_prompt () {
if [ -z "$VIRTUAL_ENV_PROMPT" ] && [ -n "$VIRTUAL_ENV" ];then
local prompt
prompt=$(grep "^prompt *=" "$VIRTUAL_ENV/pyvenv.cfg" 2>/dev/null|cut -d "=" -f 2|sed 's/^ *//')
if [ -z "$prompt" ];then
prompt="$(basename "$VIRTUAL_ENV")"
fi
printf '(%s) ' "$prompt"
fi
}
PS1='$(_venv_prompt)'$PS1
prevent pkg mgr contamination
reference: https://zenn.dev/mizchi/scraps/8b1f2789a94c43
export HOMEBREW_FORBIDDEN_FORMULAE="node python python3 pip npm pnpm yarn claude deno"