Use $jobstates and $jobtexts to look for jobs
Use $jobstates and $jobtexts to look for jobs

`jobs %string` doesn't work correctly when run inside `$()`. `$jobstates` and
`$jobtexts` is available in the current shell process, so even though we need
to replicate a bit more logic, every type of `fg` invocation works correctly.
tekniklr/oh-my-zsh,tekniklr/oh-my-zsh