mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-19 08:45:36 +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:
parent
255aec2e53
commit
451738cb93
1 changed files with 4 additions and 0 deletions
|
@ -12,3 +12,7 @@ bindkey '^Z' ctrlz
|
||||||
squash() {
|
squash() {
|
||||||
mksquashfs "$1" "$1.zst.sfs" -comp zstd -Xcompression-level 15
|
mksquashfs "$1" "$1.zst.sfs" -comp zstd -Xcompression-level 15
|
||||||
}
|
}
|
||||||
|
|
||||||
|
escfpath(){
|
||||||
|
printf "%q\n" "$(realpath "$1")"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue