-
Notifications
You must be signed in to change notification settings - Fork 31
macOS
Fangrui Song edited this page May 23, 2025
·
9 revisions
- Customize modifier key -> Caps
- Desktop & Dosk -> Default web browser: Google Chrome
- Keyboard -> Key repeat rate: Fast
defaults write -g InitialKeyRepeat -int 10
defaults write -g KeyRepeat -int 1
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/maskray/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install cmake neovim ninja
Use lldb:
sudo DevToolsSecurity -enable
asoftwareupdate -i 'Command Line Tools for Xcode-12.5'
sudo xcode-select --switch /Library/Developer/CommandLineTools/
softwareupdate --install-rosetta
LLVM
/opt/homebrew/bin/cmake -GNinja -Sllvm -Bout/debug -DCMAKE_BUILD_TYPE=Debug -DCLANG_ENABLE_ARCMT=off -DCLANG_ENABLE_STATIC_ANALYZER=off -DCLANG_PLUGIN_SUPPORT=off -DLLVM_ENABLE_PROJECTS='clang;lld;compiler-rt' -DCOMPILER_RT_ENABLE_IOS=off -DLLVM_TARGETS_TO_BUILD='X86;AArch64' -DLLVM_ENABLE_UNWIND_TABLES=OFF -DLLVM_APPEND_VC_REV=OFF -DLLVM_OPTIMIZED_TABLEGEN=On
bat
ccls
clang-format
cmake
eza
fd
fish
fzf
gh
ipython
kanata
koekeishiya/formulae/skhd
koekeishiya/formulae/yabai
lua
neovide
ninja
ripgrep
rust
tmux
zellij
Keyboard - Use Option as Meta
cd ~/bin
ln -s /opt/homebrew/bin/nvim v
skhd --start-service
yabai --start-service
Profiles-Keys:
- Left Option key: Esc+
- Right Option key: Esc+
sudo '/Library/Application Support/org.pqrs/Karabiner-DriverKit-VirtualHIDDevice/Applications/Karabiner-VirtualHIDDevice-Daemon.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Daemon'
sudo kanata --cfg ~/.config/kanata/config.kbd