Skip to content

Instantly share code, notes, and snippets.

@troynt
Last active May 2, 2021 21:11
Show Gist options
  • Save troynt/51974da73305b0d86980006e76511de6 to your computer and use it in GitHub Desktop.
Save troynt/51974da73305b0d86980006e76511de6 to your computer and use it in GitHub Desktop.
Drag and Drop files in Windows to SCP to remote host.
bash -c "path_exec=$(echo \"%1\" | sed 's/[[:space:]]\([A-Z]:\)/\n\1/g' | sed 's/[A-Z]:/\/mnt\/\L&/g' | tr '\\' '\/'\'); path_exec="${path_exec//:}"; scp \"$path_exec\" ubuntu:~; sleep 2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment