Skip to content

Instantly share code, notes, and snippets.

@mensly
Created January 6, 2022 09:54
Show Gist options
  • Save mensly/0ca91c4d985c8a6dc9c6490df8def20f to your computer and use it in GitHub Desktop.
Save mensly/0ca91c4d985c8a6dc9c6490df8def20f to your computer and use it in GitHub Desktop.
Secure Move
function smv --description "smv <localfile> <user>@<host>:<remotefile>"
# What deranged mind needed this?
scp $argv[1..-1]
if [ $argv[1] = '-r' ]
rm $argv[1..2]
else
rm $argv[1]
end
# TODO: Support -r parameter properly
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment