| Crates.io | dir2sh |
| lib.rs | dir2sh |
| version | 0.1.1 |
| created_at | 2025-05-09 18:30:45.496221+00 |
| updated_at | 2025-05-23 17:12:32.10862+00 |
| description | This Rust tool simplifies copying a folder to a remote Linux machine by generating shell commands. |
| homepage | |
| repository | https://github.com/772/dir2sh |
| max_upload_size | |
| id | 1667480 |
| size | 57,209 |

This Rust tool simplifies copying a folder to a remote Linux machine by generating shell commands.
Designed for graphical environments (Linux/Windows), it bypasses the need for manual scp/sftp/git workflows by copying terminal commands directly to your clipboard.
dir2sh (no parameters or configuration needed).Example clipboard output:
set +o history
mkdir -p "hello_world"
printf '%s' 'W3BhY2thZ2VdCm5hbWUgPSAiaGVsbG9fd29ybGQiCnZlcnNpb24gPSAiMC4xLjAiCmVkaXRpb24gPSAiMjAyNCIKCltkZXBlbmRlbmNpZXNdCg==' | base64 -d > "hello_world/Cargo.toml"
mkdir -p "hello_world/src"
printf '%s' 'Zm4gbWFpbigpIHsKICAgIHByaW50bG4hKCJIZWxsbywgd29ybGQhIik7Cn0K' | base64 -d > "hello_world/src/main.rs"
set -o history
After installing Rust (https://rustup.rs/) you can install this minimalistic tool via:
cargo install dir2sh
cargo clean before copying Rust projects with this tool e.g..bash_history because of set +o history.