#directory #cli-tool #env #environment-variables #parser #pwd

app in-directory

A trivial utility for running a command in a specific working directory

2 stable releases

1.0.1 Oct 7, 2020

MPL-2.0 license

63 lines


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. The usage is simple:

in /path/to/directory <command>...

Unless -n/--no-pwd is given, the PWD environment variable will be set to the target directory before the command is executed.


~48K SLoC