c - a 'cd' wrapper
c [-chisv] [-l LIBRARY] [-m MATCHER] [-t THRESHOLD] [directory]
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.
- -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.
Defines a c() function that wraps shell 'cd'.
If set, $_C_OPTS will be passed as arguments.
- 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.
Miguel Serrano <miguelvps at gmail.com>
cd, cdargs, autojump, z