Created
January 6, 2022 09:54
-
-
Save mensly/0ca91c4d985c8a6dc9c6490df8def20f to your computer and use it in GitHub Desktop.
Secure Move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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