2 stable releases
| 1.0.1 | Apr 23, 2019 |
|---|
#1768 in Development tools
11KB
cpwd
cpwd is a cross platform command that (c)opies current working directory (pwd) into your clipboard.
install
cargo install cpwd
usage
Windows:
C:\Users\mk\git\cpwd-rs (master -> origin)> cpwd
'C:\Users\mk\source\repos\cpwd-rs' copied to clipboad
Linux / MacOS / *nix:
~/git/cpwd-rs (master -> origin)> cpwd
'/home/mk/git/cpwd-rs' copied to clipboad
Difference to ccwd
ccwd is meant for linux and requires either xcopy or xset to be installed.
cpwd works on Linux, Windows, MacOS and others.
In fact this tool was build because ccwd did work on my linux machines, but did not compile on my windows gaming rig.
build
Only Rust is required to build this.
git clone https://github.com/maklemenz/cpwd-rs
cd cpwd-rs
cargo build --release
cpwd uses opt-level='z' and lto=true to minimize binary size.
License
cpwd is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in cpwd by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Troubleshooting
make sure $HOME\.cargo\bin is in your path. If you installed Rust via rustup this should already be the case.
Dependencies
~20–335KB