Skip to content
/ c Public

c is a 'cd' wrapper that fuzzy finds and cd into a directory.

License

Notifications You must be signed in to change notification settings

miguelvps/c

Repository files navigation

NAME

c - a 'cd' wrapper

SYNOPSIS

c [-chisv] [-l LIBRARY] [-m MATCHER] [-t THRESHOLD] [directory]

DESCRIPTION

c is a 'cd' wrapper that fuzzy finds and cd into directory.

For instance, if you have foo/bar and fo/foo directories and run 'c f/b' you'll end up in foo/bar directory.

OPTIONS

-c

Do bash completion.

-h

Print usage information.

-i

Do insensitive case completion.

-l LIBRARY

Select the shared library where MATCHER is found.

-m MATCHER

Set the aproximate string matching function. See -l.

-s

Simulate. Print all matching directories.

-t THRESHOLD

Set the threshold ([0,1]).

-v

Print version information.

ENVIRONMENT

Defines a c() function that wraps shell 'cd'.

If set, $_C_OPTS will be passed as arguments.

EXAMPLE

c foo

cd to the directory with name most similar to foo.

c -t 0.75 foo

cd to the directory with name most similar to foo using a threshold of 75%.

c -l liblevenshtein.so -m normalized_levenshtein_distance foo

cd to the directory with name most similar to foo using a levenshtein distance algorithm instead of the default.

AUTHOR

Miguel Serrano <miguelvps at gmail.com>

HOMEPAGE

http://github.com/miguelvps/c

SEE ALSO

cd, cdargs, autojump, z

About

c is a 'cd' wrapper that fuzzy finds and cd into a directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published