Hacker News new | past | comments | ask | show | jobs | submit login

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



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




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: