From bb4867cca69d025c4c7014489827f72bbd46f38a Mon Sep 17 00:00:00 2001 From: mgild Date: Fri, 13 Jul 2018 10:49:29 -0700 Subject: [PATCH] adding autojump integration --- Examples.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Examples.md b/Examples.md index d79ecc9..3ca3343 100644 --- a/Examples.md +++ b/Examples.md @@ -787,6 +787,19 @@ Fish like interactive tab completion for cd in zsh. ![zsh-interactive-cd-demo](https://raw.githubusercontent.com/changyuheng/zsh-interactive-cd/master/demo.gif) +### autojump + +### Integration with [autojump](https://github.com/wting/autojump) +```sh +j() { + if [[ "$#" -ne 0 ]]; then + autojump $@ + return + fi + cd "$(autojump -s | sed '/_____/Q; s/^[0-9,.:]*\s*//' | fzf --height 40% --nth 1.. --reverse --inline-info +s --tac --query "${*##-* }" )" +} +``` + ### z #### Integration with [z](https://github.com/rupa/z).