Utility to execute commands in directories, and create directories if needed.
It will also create the directories, if missing. If the top level directory is empty after executing the command, it will be removed. This means that in testdirectory pwd
leaves no traces.
in build cmake ..
Instead of:
mkdir -p build
cd build
cmake ..
cd ..
Or:
mkdir -p build
cmake -B build -S .
in project ./configure --prefix=/usr
Instead of:
cd project
./configure --prefix=/usr
cd ..
Or:
(cd project; ./configure --prefix=/usr)
Or:
pushd project
./configure --prefix=/usr
popd
Globbing (note the double quotes to avoid shell expansion). No directories are created when using globbing, but the given command will be run in each directory where a matching file is found, for each matching file.
in "./**/*pom.xml" mvn clean
Manual installation, using cargo
, git
, install
and sudo
:
git clone https://github.com/xyproto/in
cd in
cargo build --release
sudo install -Dm755 target/release/in /usr/bin/in
Manual installation, using cargo
, doas
, git
and install
:
git clone https://github.com/xyproto/in
cd in
cargo build --release
mkdir -p /usr/bin
doas install -m755 target/release/in /usr/bin/in
- Version: 1.7.4
- License: BSD-3
- Author: Alexander F. Rødseth <xyproto@archlinux.org>