m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

adding autojump integration

mgild
2018-07-13 10:49:29 -07:00
parent 802c4e1a44
commit bb4867cca6

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