[IPython-user] New feature: cd -foo (jump to directory matching "foo" in directory history)

Ville M. Vainio vivainio@gmail....
Thu Aug 14 16:18:28 CDT 2008


On Thu, Aug 14, 2008 at 11:54 PM, Ville M. Vainio <vivainio@gmail.com> wrote:

> You can bid farewell to such redundancy. If you often hang around
> /var/log/samba, you can jump there directly with "cd -samba" or even
> "cd -samb", once the directory ends up in your directory history.

Note: this is cd --samba, not cd -samb (because cd also supports
command line switches -q and -b).

Also note that cd --s<TAB> works correctly (it shows all dirs whose
basename matches s*). cd --log will wil still work, but tab completer
does not show it for obvious reasons.

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'


More information about the IPython-user mailing list