macOS 개발 환경 구축

본격 macOS에 개발 환경 구축하기

개발자를 위한 macOS(>= Big Sur) 설정

// zsh brew not found
// brew를 못찾을 때, 환경변수 설정
eval $(/opt/homebrew/bin/brew shellenv)

키보드 capsLock Delay

맥 한/영 전환 딜레이 해결 및 키보드 최적화

kabrina 설치

iTerm 세팅

# install "homebrew"
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/master/install.sh>)"

# iterm 설치
brew install iterm2 git ncdu

# oh my zsh 설치
sh -c "$(curl -fsSL <https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh>)"

# zsh 설치
brew install zsh zsh-completions

# zsh plug-in 설치
# zsh-syntax-highlighting
git clone <https://github.com/zsh-users/zsh-syntax-highlighting.git> ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

# zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

# .zshrc 에서 플러그인 설정
plugins=(
  git
  zsh-syntax-highlighting
  zsh-autosuggestions
)

새창 이전 경로로

Untitled

vim

<aside> 💡 vim에서 esc로 빠져나왔을 때, 자동 한영 전환하는 방법

</aside>

GitHub - lyokha/vim-xkbswitch: vim plugin for automatic keyboard layout switching in insert mode

Vim에서 한글 입력 - Yunseok's Dev Blog

vim 명령모드에서 영문 키보드로 자동으로 전환되게 만들기

에러가 나네 .. 왜지.. 잘됐었는데 ... 인텔맥이라선가 ... 
1. xkbswitch 플러그인을 못찾고
2. "    let g:XkbSwitchEnabled = 1 << 여기서 주석 풀면 에러나네
--- 주석 풀었을 때 ---
Error detected while processing BufEnter Autocommands for "*"..function <SNR>16_xkb_switch:
line    7:
dlerror = "dlopen(/usr/local/lib/libInputSourceSwitcher.dylib, 0x0005): tried: '/usr/local/lib/libInputSourceSwitcher.dylib' (
code signature in <AA276D65-3BF4-372A-A45C-3E1958856C83> '/usr/local/lib/libInputSourceSwitcher.dylib' not valid for use in pr
ocess: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.), '/usr/lib/libInputSourceSwitch
er.dylib' (no such file)"
E364: Library call failed for "Xkb_Switch_getXkbLayout()"

설마 brew 에 vim이 없어서? 아니고, xcode-select --install
ㅗ므렉ㅆ어ㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓㅓ