Here is a nice little tool for command line users called the Z script.
It remembers your visited directories and gives you convenient shortcuts to them.
for example:
529@ ~ $ z ext // go to the most frequently used directory containing "ext"
530@ ~/jive/sbs/extended_apis_6.0.1.5 (eapis_6) $ cd /
531@ / $ z sbs // go to the most frequently used directory containing "sbs"
532@ ~/jive/sbs $ cd /
533@ / $ z -l ext // display all previously used directories containing "ext"
8 /Users/dovamir/jive/sbs/extended_apis_5.0.1.5
16 /Users/dovamir/jive/sbs/extended_apis_6.0.1.5
the installation is simple, add z.sh from
to your ~ (homedir) and add
. ~/z.sh
to your .profile.
or (another way to install):
brew install z
and add to .profile
. `brew --prefix`/etc/profile.d/z.sh
No comments:
Post a Comment