From 3cc612800e98ec0b6614c87bf35824ab1178eef5 Mon Sep 17 00:00:00 2001 From: Ran Yitzhaki Date: Thu, 10 Aug 2017 20:50:04 +0300 Subject: [PATCH] z.md: add page (#1442) --- pages/common/z.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/z.md diff --git a/pages/common/z.md b/pages/common/z.md new file mode 100644 index 0000000000..1c482da949 --- /dev/null +++ b/pages/common/z.md @@ -0,0 +1,27 @@ +# z + +> Tracks your most used directories and enable quick jumping using regexes from the command line. + +- Go to a directory that contains foo: + +`z {{foo}}` + +- Go to a directory that contains foo and then bar: + +`z {{foo}} {{bar}}` + +- Go to the highest ranked directory matching foo: + +`z -r {{foo}}` + +- Go to the most recently accessed directory matching foo: + +`z -t {{foo}}` + +- List all directories matching foo (from z database): + +`z -l {{foo}}` + +- Remove the current directory from the database: + +`z -x .`