Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nocd-1.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nocd-1.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for nocd-1.1.0.tar.gz
Algorithm Hash digest
SHA256 cf3bf516ad1dc22e2d7b480e118c02badb0ff1ed69fc340168a2a8fc87f771bc
MD5 e2c761ac85e77977bc7d74dbd4525a5c
BLAKE2b-256 8a65933d8d53a77b484b3fd0aa873a3e29a164f3a995831813e43fa2f196c17b

See more details on using hashes here.

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

Hashes for nocd-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a010a795c6ed64b132e882a07b9f170b28e9fb654df8d9b0949427643972f94c
MD5 a2eb2058ac54de60772b5e3666c96367
BLAKE2b-256 f77d5cda53842a3b93e0a742e343cc533b134d8b997553f8a692ca9efee87562

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page