Compare commits

..

No commits in common. "df65f35f0bbb7286b5858d5f31c9f364db408d0a" and "620857fc8adb83821a743812645d462d363fbb5f" have entirely different histories.

3 changed files with 10 additions and 15 deletions

View File

@ -5,25 +5,20 @@ if [ "$TERM" == 'xterm-kitty' ]; then
alias diff='kitty +kitten diff' alias diff='kitty +kitten diff'
fi fi
COMMON_RSYNC='--info=ALL --recursive --delay-updates --human-readable --links --hard-links --perms' DEFAULT_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 $RSDEF" alias rsync_default="rsync $DEFAULT_RSYNC --checksum"
# 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 $RSBKP" alias rsync_backup="rsync $DEFAULT_RSYNC --checksum --times --group --owner --delete"
alias rsync_move="rsync $RSMOV" alias rsync_move="rsync $DEFAULT_RSYNC --checksum --remove-source-files"
alias rsync_update="rsync $RSUPD" alias rsync_update="rsync $DEFAULT_RSYNC --update --times"
alias rsync_copy="rsync $RSCPY" alias rsync_copy="rsync $DEFAULT_RSYNC --ignore-times"
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