debian #1

Open
fabian wants to merge 13 commits from debian into master
3 changed files with 15 additions and 10 deletions
Showing only changes of commit 6162c2016a - Show all commits

View File

@ -5,20 +5,25 @@ if [ "$TERM" == 'xterm-kitty' ]; then
alias diff='kitty +kitten diff' alias diff='kitty +kitten diff'
fi 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 l='ls -l -v --all --human-readable --classify --group-directories-first' # -lvahF --group-directories-first
alias lt=='l --time-style=long-iso' alias lt=='l --time-style=long-iso'
alias r='reset' alias r='reset'
alias ..='cd ..' alias ..='cd ..'
alias refresh_bashrc='. ~/.bashrc' # alternatively: 'source ~/.bashrc' 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 # source /usr/share/bash-completion/completions/rsync
# complete -F _rsync rsync_default # complete -F _rsync rsync_default
alias rsync_backup="rsync $DEFAULT_RSYNC --checksum --times --group --owner --delete" alias rsync_backup="rsync $RSBKP"
alias rsync_move="rsync $DEFAULT_RSYNC --checksum --remove-source-files" alias rsync_move="rsync $RSMOV"
alias rsync_update="rsync $DEFAULT_RSYNC --update --times" alias rsync_update="rsync $RSUPD"
alias rsync_copy="rsync $DEFAULT_RSYNC --ignore-times" alias rsync_copy="rsync $RSCPY"
alias copy_link='cp --no-dereference --recursive --preserve=all --link' # not --force to make it optional alias copy_link='cp --no-dereference --recursive --preserve=all --link' # not --force to make it optional
alias off='systemctl poweroff' alias off='systemctl poweroff'
alias nnn='nnn -dHrR' alias nnn='nnn -dHrR'

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source=$1 source=$1
destinationPart=${1%/}; # cut off trailing "/" destinationPart=${1%/}; # cut off trailing "/"
# tar cfv $destinationPart.tar $source && xz $destinationPart.tar; # tar cfv "$destinationPart.tar" "$source" && xz "$destinationPart.tar";
tar c -I"xz -v" -vf $destinationPart.tar.xz $source tar c -I"xz -v" -vf "$destinationPart.tar.xz" "$source"

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source=$1; source=$1;
# archive=${source%.xz}; # cut off trailing ".xz" # archive=${source%.xz}; # cut off trailing ".xz"
# unxz $source && tar xfv $archive # unxz "$source" && tar xfv "$archive"
tar x -I"unxz -v" -vf $source tar x -I"unxz -v" -vf "$source"