From bbedc34c8ee35d0616ae32f827bce5c74e94b39e Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Wed, 26 Dec 2018 21:54:21 +0800 Subject: [PATCH] new: option -i to cd with interactive selection --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ab06bf..74b78cb 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ z -t foo # cd to most recently accessed dir matching foo z -l foo # list matches instead of cd z -c foo # restrict matches to subdirs of $PWD z -e foo # echo the best match, don't cd +z -i foo # cd with interactive selection ``` ## Install @@ -120,7 +121,19 @@ It could be much faster on slow hardware or Cygwin/MSYS. ## Aliases -TODO +Recommanded aliases you may find useful: + +```bash +alias zc='z -c' # restrict matches to subdirs of $PWD +alias zz='z -i' # cd with interactive selection +``` + +And you can define a `zf` command to select history path with fzf: + +```bash +alias zf='cd "$(z -l -s | fzf --reverse --height 35%)"' +``` + ## Credit