C.W.K.
Stream
Lesson 07 of 08 · published

Atuin — 스테로이드 맞은 shell history

~10 min · atuin, history, sync

Level 0창 구경꾼
0 XP0/95 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete

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 zsh

init 줄이 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 경험.

Code

빠른 atuin 투어·bash
brew install atuin
atuin import auto
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
exec zsh
# Press Ctrl+R
# Filter by dir / host / exit code from inside the picker

External links

Exercise

atuin 설치. atuin import auto 실행. eval 줄 추가. 새 터미널 열고 Ctrl+R, help 에 표시된 토글 키로 디렉터리 필터. history 가 얼마나 깔끔한지 확인.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.