I am using bash and what I'm trying to do is achieve autocompletion in a nested command. For example, typing:
kill $(cat tmp/p|
<tab> would yield
kill $(cat tmp/pids/
And I'd like to type
s<tab>)to get to
kill $(cat tmp/pids/server.pid)
Unfortunately, my bash autocompletion is not working in this particular situation.
Is there a way to fix this?
Here's my bash version:
GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.5.0) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>