mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-18 16:26:50 +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() {
|
||||
mksquashfs "$1" "$1.zst.sfs" -comp zstd -Xcompression-level 15
|
||||
}
|
||||
|
||||
escfpath(){
|
||||
printf "%q\n" "$(realpath "$1")"
|
||||
}
|
Loading…
Add table
Reference in a new issue