1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-16 07:26:51 +00:00

Add two new functions to .zsh/func.zsh: squash to create a compressed squashfs archive and escfpath to print the escaped absolute path of a file

This commit is contained in:
Luna 2023-04-15 17:40:16 +02:00
parent 255aec2e53
commit 451738cb93

View file

@ -11,4 +11,8 @@ bindkey '^Z' ctrlz
squash() {
mksquashfs "$1" "$1.zst.sfs" -comp zstd -Xcompression-level 15
}
escfpath(){
printf "%q\n" "$(realpath "$1")"
}