Merge branch 'master' into debian
This commit is contained in:
commit
6162c2016a
@ -5,20 +5,25 @@ if [ "$TERM" == 'xterm-kitty' ]; then
|
||||
alias diff='kitty +kitten diff'
|
||||
fi
|
||||
|
||||
DEFAULT_RSYNC='--info=ALL --recursive --delay-updates --human-readable --links --hard-links --perms'
|
||||
COMMON_RSYNC='--info=ALL --recursive --delay-updates --human-readable --links --hard-links --perms'
|
||||
export RSDEF="$COMMON_RSYNC --checksum"
|
||||
export RSBKP="$RSDEF --times --group --owner --delete"
|
||||
export RSMOV="$RSDEF --remove-source-files"
|
||||
export RSUPD="$COMMON_RSYNC --update --times"
|
||||
export RSCPY="$COMMON_RSYNC --ignore-times"
|
||||
|
||||
alias l='ls -l -v --all --human-readable --classify --group-directories-first' # -lvahF --group-directories-first
|
||||
alias lt=='l --time-style=long-iso'
|
||||
alias r='reset'
|
||||
alias ..='cd ..'
|
||||
alias refresh_bashrc='. ~/.bashrc' # alternatively: 'source ~/.bashrc'
|
||||
alias rsync_default="rsync $DEFAULT_RSYNC --checksum"
|
||||
alias rsync_default="rsync $RSDEF"
|
||||
# source /usr/share/bash-completion/completions/rsync
|
||||
# complete -F _rsync rsync_default
|
||||
alias rsync_backup="rsync $DEFAULT_RSYNC --checksum --times --group --owner --delete"
|
||||
alias rsync_move="rsync $DEFAULT_RSYNC --checksum --remove-source-files"
|
||||
alias rsync_update="rsync $DEFAULT_RSYNC --update --times"
|
||||
alias rsync_copy="rsync $DEFAULT_RSYNC --ignore-times"
|
||||
alias rsync_backup="rsync $RSBKP"
|
||||
alias rsync_move="rsync $RSMOV"
|
||||
alias rsync_update="rsync $RSUPD"
|
||||
alias rsync_copy="rsync $RSCPY"
|
||||
alias copy_link='cp --no-dereference --recursive --preserve=all --link' # not --force to make it optional
|
||||
alias off='systemctl poweroff'
|
||||
alias nnn='nnn -dHrR'
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
source=$1
|
||||
destinationPart=${1%/}; # cut off trailing "/"
|
||||
# tar cfv $destinationPart.tar $source && xz $destinationPart.tar;
|
||||
tar c -I"xz -v" -vf $destinationPart.tar.xz $source
|
||||
# tar cfv "$destinationPart.tar" "$source" && xz "$destinationPart.tar";
|
||||
tar c -I"xz -v" -vf "$destinationPart.tar.xz" "$source"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
source=$1;
|
||||
# archive=${source%.xz}; # cut off trailing ".xz"
|
||||
# unxz $source && tar xfv $archive
|
||||
tar x -I"unxz -v" -vf $source
|
||||
# unxz "$source" && tar xfv "$archive"
|
||||
tar x -I"unxz -v" -vf "$source"
|
||||
|
Loading…
x
Reference in New Issue
Block a user