From 2340bb56c8fd11fb308e1b30154703c9206958a8 Mon Sep 17 00:00:00 2001 From: kenorb Date: Tue, 24 Sep 2024 19:34:59 +0100 Subject: [PATCH] Improves rsync alias --- .aliasesrc | 3 +-- .aliasesrc_linux | 3 +++ .aliasesrc_macos | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.aliasesrc b/.aliasesrc index 458426d..4000464 100644 --- a/.aliasesrc +++ b/.aliasesrc @@ -219,8 +219,7 @@ alias rm-ds="find . -name '.DS_Store' -type f -delete -print" alias rm-empty-dirs="find . -type d -empty -delete -print" alias rm-empty-files="find . -type f -empty -delete -print" -# rsync -alias rsync='rsync --info=progress2' +# Rsync alias rsync-sudo='rsync --rsync-path="sudo rsync"' alias rsync-mv="rsync --ignore-existing --remove-source-files -av" diff --git a/.aliasesrc_linux b/.aliasesrc_linux index 1cee650..2c5ca2f 100644 --- a/.aliasesrc_linux +++ b/.aliasesrc_linux @@ -10,6 +10,9 @@ alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' +# Rsync +alias rsync='rsync --info=progress2' + # Crypto. alias btcaddr2hash160="base58 -d | cut -c2- | xxd -p | head -c40" diff --git a/.aliasesrc_macos b/.aliasesrc_macos index 761d163..bc79c4c 100644 --- a/.aliasesrc_macos +++ b/.aliasesrc_macos @@ -19,6 +19,9 @@ alias restart-sound="sudo kextunload /System/Library/Extensions/AppleHDA.kext && # Restart Finder. alias restart-finder="launchctl stop com.apple.Finder; launchctl start com.apple.Finder" +# Rsync +alias rsync='rsync --progress' + # Logs alias log-php="log stream --level debug --predicate 'processImagePath contains \"php\"'"