This package has been deprecated

Author message:

Project renamed to cli-wd since version 0.3.0

cli-cwd

0.2.0 • Public • Published

npm

cli-cwd Dependency Status

Run program in a modified working directory.

Example

$ cwd /usr/bin pwd
/usr/bin

Put archive file in a custom directory across archivers:

$ cwd ./dir tar cvaf ../dir.tbz2 .
$ cwd ./dir zip -r ../dir .
$ cwd ./dir 7z a ../dir . -tzip

Start a subshell:

$ cwd /
$ echo $SHLVL $PWD
2 /

CLI

Usage:  cwd <directory> [<command>] [arg]...

<command> defaults to $SHELL if omitted.

Install

npm install -g cli-cwd

License

MIT

Package Sidebar

Install

npm i cli-cwd

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • eush77