flat history 파일 너머
기본 zsh history 는 텍스트 파일. atuin 이 SQLite 기반 store 로 업그레이드 — 타임스탬프, exit code, 디렉터리, hostname, 머신 간 옵션 암호화 sync, 퍼지 인터랙티브 검색.
설치
brew install atuin
atuin import auto # 기존 zsh history import
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
exec zshinit 줄이 Ctrl+R 을 atuin UI 로 교체. 옛 zsh history 그대로 — atuin 이 import 시 한 번 읽음.
얻는 것
- 디렉터리 필터: '이 프로젝트에서 친 command 만'.
- 호스트 필터: 'office Mac 에서 친 것만'.
- Exit code 필터: 실패한 command 제외.
- 시간대 통계: 시간별 최다 command.
- 옵션 sync: end-to-end 암호화, 자체 또는 Atuin 팀 호스팅.
Sync
atuin register -u me -e me@example.com
atuin login -u me
atuin sync # push + pull
atuin sync -f # full sync 강제본인 passphrase 로 암호화 — 서버는 plaintext 못 봄. self-host 가능 (서버도 오픈소스).
Pippa fleet 메모
Pippa fleet 은 office Mac (canonical) 과 peer Mac 사이 Atuin sync 사용. 코드 repo 와 같은 Tailscale mesh 통해 history 도 흐름. 9 대 머신에서 일관된 shell 경험.