bpwd-0.3.0 is not a library.
bpwd
A better pwd with clipboard support and targeting.
Installation
Homebrew (macOS/Linux)
Cargo
Installer Script
In Linux:
|
In Windows (PowerShell)
powershell -ExecutionPolicy Bypass -c "irm https://github.com/CodeTease/bpwd/releases/latest/download/bpwd-installer.ps1 | iex"
Release
You can also download the binary from the Release page.
Usage
target: Optional path to resolve relative to current directory. Use--to separate flags from arguments (e.g.,bwd -- -my-dir).-c: Copy the result to clipboard.-s: Shorten path (replace home directory with$HOMEor%USERPROFILE%).-j: Output path information as JSON.-r: Print path relative to project root (searches for.gitor.bwd-root).
Examples
Standard Output (Absolute Path)
Shortened Path (-s)
JSON Output (-j)
}
Priority Logic
- JSON (
-j): Always outputs the JSON object. - Short (
-s): If JSON is not requested, outputs the shortened path. - Default: Outputs the absolute path.