From ecb4005b0edb6eb991b2c2f09af343f7c2980eb7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 16 Nov 2024 16:07:47 +0100 Subject: [PATCH] bases --- shell/alias/lsblk.sh | 6 +++--- shell/alias/rsync.sh | 23 +++++++++++++++-------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/shell/alias/lsblk.sh b/shell/alias/lsblk.sh index fb50d87..398bc42 100644 --- a/shell/alias/lsblk.sh +++ b/shell/alias/lsblk.sh @@ -8,8 +8,8 @@ lb() { "MOUNTPOINTS" } -# common arguments -lbc() { +# base arguments +lbb() { lsblk \ --noempty \ "${@}" @@ -22,6 +22,6 @@ lbo() { for argument in "${@}"; do arguments="${arguments},${argument}" done - lbc \ + lbb \ --output "${arguments}" } diff --git a/shell/alias/rsync.sh b/shell/alias/rsync.sh index 7c08c91..d7c66b6 100644 --- a/shell/alias/rsync.sh +++ b/shell/alias/rsync.sh @@ -1,12 +1,19 @@ # synchronize -alias rs="\ -rsync \ ---archive \ ---partial \ ---progress \ ---verbose \ ---no-inc-recursive \ -" +rs() { + rsb \ + "${@}" +} + +# base arguments +rsb() { + rsync \ + --archive \ + --no-inc-recursive \ + --partial \ + --progress \ + --verbose \ + "${@}" +} # synchronize and delete after alias rsda="\