# cpwd cpwd is a cross platform command that (c)opies current working directory (pwd) into your clipboard. ![AppVeyor branch](https://img.shields.io/appveyor/ci/maklemenz/cpwd-rs/master.svg?label=appveyor%20build&style=plastic) ![Travis (.org)](https://img.shields.io/travis/maklemenz/cpwd.svg?label=travis%20build&style=plastic) ![AppVeyor tests](https://img.shields.io/appveyor/tests/maklemenz/cpwd-rs.svg?label=appveyor-tests&style=plastic) ![GitHub top language](https://img.shields.io/github/languages/top/maklemenz/cpwd-rs.svg?style=plastic) ![GitHub repo size](https://img.shields.io/github/repo-size/maklemenz/cpwd-rs.svg?style=plastic) ![GitHub](https://img.shields.io/github/license/maklemenz/cpwd-rs.svg) ![Dependencies](https://deps.rs/repo/github/maklemenz/cpwd-rs/status.svg) [//]: # "https://codeclimate.com/github/maklemenz/cpwd-rs" ## install ```sh cargo install cpwd ``` ## usage Windows: ```sh C:\Users\mk\git\cpwd-rs (master -> origin)> cpwd 'C:\Users\mk\source\repos\cpwd-rs' copied to clipboad ``` Linux / MacOS / *nix: ```sh ~/git/cpwd-rs (master -> origin)> cpwd '/home/mk/git/cpwd-rs' copied to clipboad ``` ## Difference to [ccwd](https://github.com/mehrati/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](https://rustup.rs/) is required to build this. ```sh 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](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) * MIT license ([LICENSE-MIT](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](https://rustup.rs/) this should already be the case.