Lucretiel / in

`in` is a trivial utility that runs a command in a specific directory. It is for the working directory what `env` is for environment variables.
Mozilla Public License 2.0
2 stars 0 forks source link

tab completion? #1

Open alsuren opened 2 years ago

alsuren commented 2 years ago

Hi. I use this little tool every day. It's really excellent. I would previously type (cd dir && command) a lot, and was constantly forgetting the ). Now I just have to type \in dir command ('\' because bash treats in as a reserved word).

I'm wondering whether there is a way to teach bash that in forwards arguments to the downstream command.

After typing this, I realised that time and sudo both fail to tab-complete downstream commands on my computer, so maybe bash completion is just not powerful enough. If so, I'm happy for this to be closed.

Lucretiel commented 2 years ago

I'm not aware of any completion tool that's smart enough to do this, but I'd be happy to have this if such a thing comes into existence. I'll leave the issue open until it's solvable.