You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rmv()( if [ "$#"-ne 2 ];thenecho -e "Usage:\nrmv A B (move A into B -> B/A)\nrmv A/ B (move the content of A into B, like mv A B)";return 1;fi; rsync -aP -h --remove-source-files "$1""$2"&& rm -r "$1" )
384
-
rrm()( if [ -f"$1" ] || [ -h"$1" ];then rm "$1";elif [ -d"$1" ];thenlocal temp_dir=$(mktemp -d); rsync -aP --delete "$temp_dir/""$1"; rm -rf "$temp_dir""$1";elseecho"$1 is not a valid file, directory, or symlink";return 1;fi )
385
-
srrm()( if [ -f"$1" ] || [ -h"$1" ];then sudo rm "$1";elif [ -d"$1" ];thenlocal temp_dir=$(mktemp -d); sudo rsync -aP --delete "$temp_dir/""$1"; sudo rm -rf "$temp_dir""$1";elseecho"$1 is not a valid file, directory, or symlink";return 1;fi )
382
+
alias rcp="rsync -a --partial --info=progress2 -h"
383
+
rmv()( if [ "$#"-ne 2 ];thenecho -e "Usage:\nrmv A B (move A into B -> B/A)\nrmv A/ B (move the content of A into B, like mv A B)";return 1;fi; rsync -a --info=progress2 -h --remove-source-files "$1""$2"&& rm -r "$1" )
384
+
rrm()( if [ -f"$1" ] || [ -h"$1" ];then rm "$1";elif [ -d"$1" ];thenlocal temp_dir=$(mktemp -d); rsync -a --delete "$temp_dir/""$1"; rm -rf "$temp_dir""$1";elseecho"$1 is not a valid file, directory, or symlink";return 1;fi )
385
+
srrm()( if [ -f"$1" ] || [ -h"$1" ];then sudo rm "$1";elif [ -d"$1" ];thenlocal temp_dir=$(mktemp -d); sudo rsync -a --delete "$temp_dir/""$1"; sudo rm -rf "$temp_dir""$1";elseecho"$1 is not a valid file, directory, or symlink";return 1;fi )
0 commit comments