Created
November 23, 2015 08:52
-
-
Save drasill/9a322abac5117cdcfecd to your computer and use it in GitHub Desktop.
Fast Jump : Ctrl-J with Fasd + FZF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With FASD and FZF installed | |
# CTRL-J - Fasd fast jump | |
fzf-fasd-widget() { | |
local cmd="${FZF_ALT_C_COMMAND:-"command fasd -Rdl"}" | |
cd "${$(eval "$cmd" | $(__fzfcmd) +m):-.}" | |
zle reset-prompt | |
} | |
zle -N fzf-fasd-widget | |
bindkey '^J' fzf-fasd-widget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment