Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# autojump
function autojump-peco() {
local cd_history_path="~/.local/share/autojump/autojump.txt"
local SELECTED=$(eval more $cd_history_path | peco | cut -f2)
if [ 0 -ne ${#SELECTED} ]; then
eval echo "cd $SELECTED"
eval cd $SELECTED
zle -N autojump-peco
alias jj="autojump-peco"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.