LoginSignup
3
4

More than 5 years have passed since last update.

bashでcdの履歴を10個まで遡ることができるスクリプト

Posted at

.bashrcに書く

cd --で履歴表示、cd -1など数字で行き先指定

$ cd --
 0  ~
 1  ~/.rvm/scripts
 2  /usr/bin
 3  /usr/share/ImageMagick-6.6.9
 4  /etc/init.d
 5  /etc/network/if-up.d
 6  /etc/network
 7  /var/log/postgresql
 8  /etc/ssh
 9  /etc/postgresql

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4