Hacker News new | ask | show | jobs
by mynameisfiber 4683 days ago
I found this is a useful addition to his scripts... I can't live without my tab completion!

    _jump()
    {
        local cur=${COMP_WORDS[COMP_CWORD]}
        COMPREPLY=( $(compgen -W "$( ls $MARKPATH )" -- $cur) )
    }
    complete -F _jump jump
1 comments

Cleaner than the other variants here that use "find".