In
:open_file_folder: Create a directory if needed, then run the given command there
Install / Use
/learn @xyproto/InREADME

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.
Example 1
in build cmake ..
Instead of:
mkdir -p build
cd build
cmake ..
cd ..
Or:
mkdir -p build
cmake -B build -S .
Example 2
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
Example 3
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
Installation
Linux
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
FreeBSD
Manual installation, using cargo, doas, git and install:
git clone https://github.com/xyproto/in
cd in
cargo build --release
doas install -m755 target/release/in /usr/local/bin/in
General info
- Version: 1.7.5
- License: BSD-3
- Author: Alexander F. Rødseth <xyproto@archlinux.org>
Related Skills
himalaya
354.3kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
taskflow
354.3kUse when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
