Skip to main content

go2 is a fast directory finder

go2

Description

go2 provides an easy method to change among directories by a fast way. go2 is a console program similar to the old PCTools dm or the ncd from Norton, although this is designed for bash.

Features:

  • cache of recent searches;
  • history list of visited directories;
  • blacklist of directories not to search;
  • configuration file for default options;
  • multithreaded execution.

Similar programs

  • wcd
  • kcd
  • cdargs
  • apparix
  • autojump

Install

The recommended way is to install the debian package using apt-get::

# apt-get install go2

alternatively you may install from PYPI with:

$ sudo pip3 install --prefix /usr go2

Once it is installed, each user need to include next line at the end of their ~/.bashrc:

[ -e /usr/lib/go2/go2.sh ] && source /usr/lib/go2/go2.sh

In the next shell session, go2 will be ready to use.

Usage

go2 is very easy to use. From any directory just execute::

$ go2 prefix

when 'prefix' is the beginning of the directory you want to go. go2 will search in your 'home' and it will list all the directories that match the prefix.

Each match has a associated letter. To choose the target, just press the corresponding key. If you want to abort the search, you may press the ESC key (or C-c). You may choose the first match pressing ENTER. The selection may occurs in any moment, it is not required that you wait the searching is finished.

go2 remembers all the successful searches, so it is faster each time.

Other options

go2 has some options to perform searches from the '/' directory, to ask case-insensitive matching, etc. Try this::

$ go2 --help
usage: go2 [-h] [--cd] [-i] [-r] [--setup] [--version] [pattern [pattern ...]]

go2 is a fast directory finder.

This is version 1.20111128, Copyright (C) 2004-2011 David Villa Alises.
go2 comes with ABSOLUTELY NO WARRANTY; This is free software, and you
are welcome to redistribute it under certain conditions; See COPYING
for details.

positional arguments:
  pattern            pattern to find

optional arguments:
  -h, --help         show this help message and exit
  --cd               change to given dir and add it to the cache (useful as
                     'cd' alias)
  -i, --ignore-case  ignore case search
  -r, --from-root    search in whole file system
  --setup            install go2 in your .bashrc
  --version          show program's version number and exit

'pattern' may be a word list so it is possible to do things like::

$ go2 -r cach arch
a: /var/cache/apt/archives
Searching...

Metadata

Release files for go2 2.20201116.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for go2 2.20201116.1
File Size Uploaded
go2-2.20201116.1.tar.gz 14.4 kB Details

Release files / go2-2.20201116.1.tar.gz

Download URL go2-2.20201116.1.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
54e436839a6f5e26e57cc671edd93641b66cad83dfb08ba211e27bff2559c31c
BLAKE2b-256 checksum
How to use checksums
57acd1762f5c9a9f5c5813cf96d911c0c9841aa60c65b0bdf93796dc48cac028
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.8.6
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page