#directory #trivial #command #variables #utility #env-var #env

app in-directory

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

2 stable releases

1.0.1 Oct 7, 2020

#15 in #trivial

MPL-2.0 license

10KB
63 lines

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

Dependencies

~3MB
~52K SLoC