<Python, iPython> %dhist
%dhist
行ったディレクトリの履歴が見れる。
で、cd -[n]
でそこへジャンプできる。
ちと便利。
In [20]: %dhist Directory history (kept in _dh) 0: /home/hage 1: /home/hage/tmp 2: /home/hage In [21]: cd -1 /home/hage/tmp In [22]: cd -0 /home/hage
あと、cd -<Tab>
でも見れる。
In [2]: cd - -0 [/home/hage] -1 [/home/hage/tmp]
マニュアル。
Built-in magic commands — IPython 4.0.0 documentation