Skip to content
Satoshi Takeda edited this page Feb 8, 2026 · 1 revision

Disclaimer

This project is provided “as is”.
Use it at your own risk.

The author is not responsible for any damage or issues caused by its use.

Caution

Various history files (.*history) contain a significant amount of confidential information, so exercise extreme caution when moving or copying them.

Backup all history

tmpdir=$(mktemp -d)

ls -a | grep history | xargs -I{} cp {} "$tmpdir/"
cp ~/.local/share/fish/fish_history "$tmpdir/"
tar -czf histories.tar.gz -C "$tmpdir" .

rm -rf "$tmpdir"

Clone this wiki locally