Run commands in another directory without cd
Project description
nocd
Run commands in another directory withinout cd
Warning: this is pure vibe code for now. It will become less so if I add features; or people use it
Motivation
With llms I find myself managing more tasks at the same time while waiting for LLMs to finish and generally doing more stuff. This command lets you run commands in a different directory.
Alternatives and prior work
You could run do this with subshells in bash
( cd ~/directory/blah ; command ; )
But this is more typing than I am willing to do. You could set up an alias for this. But I like my setup to be in globally installable pip packages where possible.
Installation
You can install this with pipx
pipx install nocd
Usage
Add a diretory for looking for directories
nocd --add-dir directory
nocd sub ls
Run ls in subdirectory of directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nocd-1.1.0.tar.gz.
File metadata
- Download URL: nocd-1.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf3bf516ad1dc22e2d7b480e118c02badb0ff1ed69fc340168a2a8fc87f771bc
|
|
| MD5 |
e2c761ac85e77977bc7d74dbd4525a5c
|
|
| BLAKE2b-256 |
8a65933d8d53a77b484b3fd0aa873a3e29a164f3a995831813e43fa2f196c17b
|
File details
Details for the file nocd-1.1.0-py3-none-any.whl.
File metadata
- Download URL: nocd-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a010a795c6ed64b132e882a07b9f170b28e9fb654df8d9b0949427643972f94c
|
|
| MD5 |
a2eb2058ac54de60772b5e3666c96367
|
|
| BLAKE2b-256 |
f77d5cda53842a3b93e0a742e343cc533b134d8b997553f8a692ca9efee87562
|