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

app in-directory

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

2 stable releases

1.0.1 Oct 7, 2020

#14 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

~2.5MB
~50K SLoC