go2 directory finder
Project description
go2 is a fast directory finder
go2
- PYPI: https://pypi.org/project/go2/
- Debian package: https://uclm-arco.github.io/debian/
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...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file go2-2.20201116.1.tar.gz
.
File metadata
- Download URL: go2-2.20201116.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e436839a6f5e26e57cc671edd93641b66cad83dfb08ba211e27bff2559c31c |
|
MD5 | 8b19821aa7e172c4fe95286c2d070ee3 |
|
BLAKE2b-256 | 57acd1762f5c9a9f5c5813cf96d911c0c9841aa60c65b0bdf93796dc48cac028 |