Atuin
詳細情報
タイトル | Atuin |
---|---|
URL | https://atuin.sh/ |
バージョン | ver 18.2.0 |
更新日 | 2024/04/15 |
追加日 | 2024/02/26 |
種別 | フリーソフト / オープンソース(MIT) |
説明 | bashやzshの履歴機能をSQLiteで置き換えて強化するユーティリティ。 |
レビュー
Atuinは、既存のシェル履歴をSQLiteデータベースで置き換え、実行したコマンドや追加情報を保存することができるオープンソースツール。
ローカルのみで利用できるほか、エンドツーエンドの暗号化に対応した同期機能を利用して、複数のマシンで同じ履歴を利用することもできる。同期サーバーは無料で利用できるほか、自分でサーバーを立てることも可能。
以下のシェルに対応している:
- zsh
- bash
- fish
- nushell
- xonsh
インストール
Rustのパッケージ管理ツールcargoを使ってインストールすることができるほか、macOSの場合は、HomebrewやMacPortsを使って簡単にインストールすることができる。
Homebrewの場合:
brew install atuin
MacPorts:の場合:
sudo port install atuin
atuinコマンドが実行できるようになったら、次のコマンドを実行する(atuin registerは公式の同期サーバーを利用しない場合は不要)。
atuin register -u -e
atuin import auto
atuin sync
シェルと組み合わせて使用するためにシェルプラグインのセットアップを行う。
zshの場合:
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
bashの場合:
echo 'eval "$(atuin init bash)"' >> ~/.bashrc
Atuinの使用方法
上記設定がすんだ後は↑やCtrl+RでAtuinの履歴検索機能を呼び出すことができる。
スクリーンショット
更新グラフ
バージョン履歴
Bug Fixes
- Add missing description (#1861)
- Allow empty search (#1866)
- Pass search query in via env (#1865)
- Pass search query in via env for Nushell (#1874)
- Case insensitive hostname filtering (#1883)
- Update atuin.nu to resolve 0.92 deprecation (#1913)
- Detect preexec plugin using env ATUIN_PREEXEC_BACKEND (#1856)
- Install script echo (#1899)
- Report non-decodable errors correctly (#1915)
- Do not use "return" to cancel initialization (#1928)
- Use spawn_blocking for file access during async context (#1936)
Documentation
- Add security contact (#1867)
Bug Fixes
- Don't preserve for empty space (#1712)
- Fish init (#1725)
- Add xonsh to auto import, respect $HISTFILE in xonsh import, and fix issue with up-arrow keybinding in xonsh (#1711)
- Rework #1509 to recover from the preexec failure (#1729)
- Typo (#1741)
- Missing or wrong fields (#1740)
- Check session file exists for status command (#1756)
- Ensure sync time is saved for sync v2 (#1758)
- No panic on empty inspector (#1768)
- Enable multiple command stats to be shown using unicode_segmentation (#1739)
- Readd up-arrow keybinding, now with menu handling (#1770)
- Missing characters in preview (#
[18.0.2] - 2024-02-26
The included fix should make bash support a bit better. For further improvement, please update bash-preexec with
curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o ~/.bash-preexec.sh
If you are using ble.sh, this is not required + this release will change nothing for you.
There are also no changes for any shell other than bash, and no serverside changes either
Bug Fixes
- Rework #1509 to recover from the preexec failure (#1729)
Full Changelog: v18.0.1...v18.0.2