Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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".




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: