Skip to main content

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.

Metadata

Release files for nocd 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nocd 1.1.0
File Size Uploaded
nocd-1.1.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nocd 1.1.0
File Interpreter ABI Platform
nocd-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / nocd-1.1.0.tar.gz

Download URL nocd-1.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cf3bf516ad1dc22e2d7b480e118c02badb0ff1ed69fc340168a2a8fc87f771bc
BLAKE2b-256 checksum
How to use checksums
8a65933d8d53a77b484b3fd0aa873a3e29a164f3a995831813e43fa2f196c17b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / nocd-1.1.0-py3-none-any.whl

Download URL nocd-1.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a010a795c6ed64b132e882a07b9f170b28e9fb654df8d9b0949427643972f94c
BLAKE2b-256 checksum
How to use checksums
f77d5cda53842a3b93e0a742e343cc533b134d8b997553f8a692ca9efee87562
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page