Crates.io | cpwd |
lib.rs | cpwd |
version | 1.0.1 |
source | src |
created_at | 2019-04-23 16:18:51.680955 |
updated_at | 2019-04-23 16:20:48.180966 |
description | cpwd command (c)opies current working directory (pwd) into your clipboard, works cross platform without dependencies on installed software or libraries |
homepage | |
repository | https://github.com/maklemenz/cpwd-rs |
max_upload_size | |
id | 129676 |
size | 38,378 |
cpwd is a cross platform command that (c)opies current working directory (pwd) into your clipboard.
cargo install cpwd
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
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.
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.
cpwd is licensed under either of
at your option.
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.
make sure $HOME\.cargo\bin
is in your path. If you installed Rust via rustup this should already be the case.