diff options
author | Canop <cano.petrole@gmail.com> | 2019-01-22 08:30:52 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2019-01-22 08:30:52 +0100 |
commit | d93bf8f91792089447aeb7a7c106c88011c62596 (patch) | |
tree | 4f4741f6ec052a89c034aecde6b2f893c4a2cec4 | |
parent | 7343765354716c374f99275d31e9304a890e8ff1 (diff) |
dcd function in documentation.md
-rw-r--r-- | documentation.md | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/documentation.md b/documentation.md index 6008bd7..deca39c 100644 --- a/documentation.md +++ b/documentation.md @@ -150,15 +150,25 @@ This opens broot and immediately search for "miaou" in `/` as if it were typed i ### Go to the most relevant directory - broot --cmd ":p miaou :g" + broot -c ":p miaou :g" This opens broot, goes to the parent directory, searches for "miaou", then opens the selected directory (staying in broot). -### cd to a directory +A variant searching from your home directory: - br --cmd "roulette :c" ~ + br -f -c "miaou :g" ~ + +### define a function for deep fuzzy cd + +In my .bashrc, I have this: + + # deep fuzzy cd + function dcd { + br --only-folders --cmd "$1 :c" + } + +This is the *"I'm feeling lucky"* of broot, I use it to directly jump to directories I know, when I don't need the interactive search of br. -This launches broot using the `br` shell function in your home directory, searches for "roulette", then cd to the relevant directory (leaving broot). |