You are not logged in.

#1 2009-07-12 23:36:03

rusty99
Member
Registered: 2009-03-18
Posts: 253

zsh and dirs -v

I really like the cd and dirs -v setting in zsh,

[0:21] [/home/rusty/files/books/linux/linux.bible.2008]
> dirs -v
0    ~/files/books/linux/linux.bible.2008
1    ~/files/books/linux
2    ~/files/books
3    ~/files
4    ~

From here if I issue cd +2 it brings me back up 2 levels as intended, cd - will return me to the previous folder I was in, but cd -2 doesn't due to the way it works as default.

Is there a way to maintain folder hierachy rather than rotating the current folder to 0?

Offline

Board footer

Powered by FluxBB