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.0.0.tar.gz (4.4 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.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file nocd-1.0.0.tar.gz.

File metadata

  • Download URL: nocd-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nocd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 798ede61b199f006d8bd4d8a406bc2322fbf1f7306feb462d2ba76fcc437ea52
MD5 4dc5f9324213985d4fd87b06383c6a07
BLAKE2b-256 49c7ce5ee2aad1305343ca4aebc48023b515b0af5323fc8ba3d1169911aeeca4

See more details on using hashes here.

File details

Details for the file nocd-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nocd-1.0.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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c213b04b4f3589b6ac91b9bd37621fd4b15a85cde96fb56ed33cee92f8a309fa
MD5 2b674a46fc9b41c9c3d93ffb8398ea03
BLAKE2b-256 d6fde96537eec325554bc081756cd9721d2ff0d37d22c19e2710c5edec1f53d3

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