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:
parent
255aec2e53
commit
451738cb93
1 changed files with 4 additions and 0 deletions
|
@ -11,4 +11,8 @@ bindkey '^Z' ctrlz
|
|||
|
||||
squash() {
|
||||
mksquashfs "$1" "$1.zst.sfs" -comp zstd -Xcompression-level 15
|
||||
}
|
||||
|
||||
escfpath(){
|
||||
printf "%q\n" "$(realpath "$1")"
|
||||
}
|
Loading…
Add table
Reference in a new issue