From d10290541d6868f5abc402100b821d97968e64f8 Mon Sep 17 00:00:00 2001 From: Florian Kempenich Date: Sat, 3 Aug 2019 13:29:18 +0100 Subject: [PATCH] Add cheatsheet for `z` --- cheat/cheatsheets/z | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cheat/cheatsheets/z diff --git a/cheat/cheatsheets/z b/cheat/cheatsheets/z new file mode 100644 index 0000000..4b5301f --- /dev/null +++ b/cheat/cheatsheets/z @@ -0,0 +1,14 @@ +# To `cd` to most frecent dir matching `foo` +z foo + +# To `cd` to most frecent dir matching `foo`, then `bar` +z foo bar + +# To `cd` to highest ranked dir matching `foo` +z -r foo + +# To `cd` to most recently accessed dir matching `foo` +z -t foo + +# To list all dirs matching `foo` - By frecency +z -l foo