쉘 히스토리 관리의 혁신: Atuin으로 강력한 검색 및 동기화 구현
요약
Atuin은 기존 쉘(shell) 히스토리를 SQLite 데이터베이스로 대체하고, 명령어 실행 시 종료 코드(exit code), 소요 시간(duration), 작업 디렉터리(cwd) 등 추가적인 컨텍스트 정보를 기록하는 도구입니다. 단순한 검색 기능을 넘어, 특정 조건(예: 어제 오후 3시 이후 성공한 `make` 명령어)을 만족하는 히스토리를 검색할 수 있습니다. 또한, 모든 동기화 과정은 종단 간 암호화(end-to-end encrypted)를 지원하여 보안성이 매우 높으며, 여러 기기와 세션에 걸쳐 일관된 쉘 사용 경험을 보
핵심 포인트
- SQLite 데이터베이스 기반으로 히스토리를 관리하며, 종료 코드, 소요 시간, 작업 디렉터리(cwd) 등 풍부한 메타데이터를 기록합니다.
- 고급 검색 기능(`atuin search`)을 제공하여 특정 조건(예: 성공 여부, 시간 범위)에 맞는 과거 명령어를 필터링할 수 있습니다.
- 종단 간 암호화(end-to-end encryption)를 통해 히스토리를 안전하게 동기화하며, 로컬 호스팅 또는 Atuin 서버 사용이 가능합니다.
- zsh, bash, fish 등 주요 쉘 환경을 지원하며, 여러 터미널과 기기 간에 동일한 히스토리 경험을 제공합니다.
magical shell history
Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server.
exit code, duration, time and command shown
As well as the search UI, it can do things like this:
# search for all successful `make` commands, recorded after 3pm yesterday
atuin search --exit 0 --after "yesterday 3pm" make
You may use either the server I host, or host your own! Or just don't use sync at all. As all history sync is encrypted, I couldn't access your data even if I wanted to. And I really don't want to.
- rebind
ctrl-randup(configurable) to a full screen history search UI - store shell history in a sqlite database - back up and sync encrypted shell history
- the same history across terminals, across sessions, and across machines
- log exit code, cwd, hostname, session, command duration, etc
- calculate statistics such as "most used command"
- old history file is not replaced
- quick-jump to previous items with Alt-<num>
- switch filter modes via ctrl-r; search history just from the current session, directory, or globally
- enter to execute a command, tab to edit
Supported Shells:
- zsh
- bash
- fish
- nushell
- xonsh
- powershell (tier 2 support)
Atuin has a community forum, please ask here for help and support: https://forum.atuin.sh/
We're also available via #atuin on libera.chat
Atuin also has a community Discord, available here
This will sign you up for the Atuin Cloud sync server. Everything is end-to-end encrypted, so your secrets are safe!
Read the docs for an offline setup, self-hosted server, and more.
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
atuin register -u <USERNAME> -e <EMAIL>
atuin import auto
atuin sync
Then restart your shell!
Note
For Bash users: The above sets up bash-preexec for necessary hooks, but bash-preexec has limitations. For details, please see the Bash section of the shell plugin documentation.
If you find any security issues, we'd appreciate it if you could alert ellie@atuin.sh
Made with contrib.rocks.
AI 자동 생성 콘텐츠
본 콘텐츠는 GitHub Trending Rust (weekly)의 원문을 AI가 자동으로 요약·번역·분석한 것입니다. 원 저작권은 원저작자에게 있으며, 정확한 내용은 반드시 원문을 확인해 주세요.
원문 바로가기