なぜか ~/.pyhistory が失われ、Python で入力した過去の内容を辿れなくなりました。Time Machine を使えば復旧は可能です。ただし、~/.pyhistory は不可視 (hidden) なので、そのままでは Time Machine で元に戻せません。Finder に表示する必要があります。 1. 不可視 file を Finder に表示する まずは、Terminal から普通に defaults を打つ。 $ defaults write com.apple.finder AppleShowAllFiles -bool yes $ killall Finderこうすると、Finder で ~/.pyhistory などが表示されるようになります。 ▲ なぜか .pyhistory に中身が空になってしまった。他の不可視のものも、全て灰色がかって表示される。 2