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).